source: imaps-frontend/node_modules/nano-css/addon/sheet.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 531 bytes
RevLine 
[d565449]1import {CssLikeObject} from '../types/common';
2import {NanoRenderer} from '../types/nano';
3
4export interface SheetAddon {
5 /**
6 * Creates a collection of CSS rules.
7 *
8 * ```js
9 * const classes = sheet({
10 * wrapper: {
11 * border: '1px solid red',
12 * },
13 * button: {
14 * color: 'red',
15 * },
16 * });
17 * ```
18 */
19 sheet: (cssMap: {[s: string]: CssLikeObject}, block?: string) => {[s: string]: string};
20}
21
22export function addon(nano: NanoRenderer);
Note: See TracBrowser for help on using the repository browser.