diff --git a/ts3.5/dist/index.d.ts b/ts3.5/dist/index.d.ts new file mode 100644 index 0000000..5f78d0f --- /dev/null +++ b/ts3.5/dist/index.d.ts @@ -0,0 +1,4 @@ +import { RollupPluginSassOptions } from "./types"; +import { Plugin as RollupPlugin } from 'rollup'; +declare const _default: (options?: RollupPluginSassOptions) => RollupPlugin; +export = _default; diff --git a/ts3.5/dist/style.d.ts b/ts3.5/dist/style.d.ts new file mode 100644 index 0000000..423c311 --- /dev/null +++ b/ts3.5/dist/style.d.ts @@ -0,0 +1 @@ +export declare function insertStyle(css: any): any; diff --git a/ts3.5/dist/types.d.ts b/ts3.5/dist/types.d.ts new file mode 100644 index 0000000..3d41aae --- /dev/null +++ b/ts3.5/dist/types.d.ts @@ -0,0 +1,81 @@ +import { types } from 'sass'; +export interface IdAndContentObject { + id?: string; + content?: string; +} +export declare type RollupPluginSassOutputFn = (styles: string, styleNodes: IdAndContentObject[]) => any; +export declare type RollupPluginSassProcessorFn = (styles: string, id: string) => Promise | T; +export interface RollupPluginSassOptions { + exclude?: string | string[]; + include?: string | string[]; + insert?: boolean; + options?: SassOptions; + processor?: RollupPluginSassProcessorFn; + output?: boolean | string | RollupPluginSassOutputFn; + runtime?: any; +} +export declare type SassImporterResult = null | { + file?: string; + contents?: string; +} | Error; +export declare type SassDoneFn = (result: T) => void | T; +export declare type SassImporter = (url: string, prev: string, done: SassDoneFn) => void | T; +export interface SassFunctionsObject { + [index: string]: types.Color | types.Number | types.String | types.List | types.Map | types.Null; +} +export interface SassOptions { + data?: string; + file?: string; + functions?: SassFunctionsObject; + importer?: SassImporter | SassImporter[]; + includePaths?: string[]; + indentType?: 'space' | 'tab'; + indentWidth?: number; + indentedSyntax?: boolean; + linefeed?: string; + omitSourceMapUrl?: boolean; + outFile?: string; + outputStyle?: 'compressed' | 'expanded'; + sourceMapContents?: boolean; + sourceMapEmbed?: boolean; + sourceMapRoot?: string; + sourceMap?: boolean | string | undefined; +} +export interface RollupAssetInfo { + fileName: string; + name?: string; + source: string | Uint8Array; + type: 'asset'; +} +export interface RollupChunkInfo { + code: string; + dynamicImports: string[]; + exports: string[]; + facadeModuleId: string | null; + fileName: string; + implicitlyLoadedBefore: string[]; + imports: string[]; + importedBindings: { + [imported: string]: string[]; + }; + isDynamicEntry: boolean; + isEntry: boolean; + isImplicitEntry: boolean; + map: { + [index: string]: string; + } | null; + modules: { + [id: string]: { + renderedExports: string[]; + removedExports: string[]; + renderedLength: number; + originalLength: number; + code: string | null; + }; + }; + name: string; + referencedFiles: string[]; + type: 'chunk'; +} diff --git a/ts3.5/dist/utils/index.d.ts b/ts3.5/dist/utils/index.d.ts new file mode 100644 index 0000000..a3e60cd --- /dev/null +++ b/ts3.5/dist/utils/index.d.ts @@ -0,0 +1 @@ +export declare const log: any, warn: any, error: any, isset: (x: any) => boolean, isString: (x: any) => boolean, isObject: (x: any) => boolean, isFunction: (x: any) => boolean; diff --git a/ts3.5/tsconfig.json b/ts3.5/tsconfig.json new file mode 100644 index 0000000..45f6c1b --- /dev/null +++ b/ts3.5/tsconfig.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "module": "CommonJS", + "moduleResolution": "node", + "target": "es2015", + "outDir": "./dist", + "declaration": true, + "declarationDir": "./dist", + "lib": [ + "es2015", + "dom" + ], + "removeComments": true, + "preserveConstEnums": true, + "noImplicitAny": false, + "sourceMap": true, + "esModuleInterop": true, + "downlevelIteration": true, + "importHelpers": false, + "typeRoots": [ + "node_modules/@types" + ] + }, + "include": [ + "./src/*" + ], + "exclude": [ + "**/node_modules/**" + ] +}