Skip to content

Instantly share code, notes, and snippets.

/component.d.ts Secret

Created January 17, 2018 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4c22ff67f02e500b504ae699dcdec9b0 to your computer and use it in GitHub Desktop.
Save anonymous/4c22ff67f02e500b504ae699dcdec9b0 to your computer and use it in GitHub Desktop.
export interface ComponentDecorator {
(opts?: ComponentOptions): any;
}
export interface ComponentOptions {
tag: string;
styleUrl?: string;
styleUrls?: string[] | ModeStyles;
styles?: string;
scoped?: boolean;
shadow?: boolean;
host?: HostMeta;
assetsDir?: string;
assetsDirs?: string[];
}
export interface ModeStyles {
[modeName: string]: string | string[];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment