UNPKG

mount-style

Version:
19 lines (15 loc) 472 B
/** * Dynamic loading of css styles * * @param src - css string * @param option - parameters: attrs, props * @returns - results */ declare function mountStyle(css: string, option?: StyleOptions): Promise<boolean>; export default mountStyle; export declare type StyleAttributes = Pick<HTMLStyleElement, 'disabled' | 'media' | 'type'>; export declare interface StyleOptions { attrs?: StyleAttributes; props?: StyleAttributes; } export { }