@najemi-software/typed-scss-modules 13.11.0 → 14.0.0-alpha.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import type { ConfigOptions } from "./types.js";
1
+ import type { IConfigOptions } from "./types.js";
2
2
  /**
3
3
  * Given a file glob generate the corresponding types once.
4
4
  *
5
5
  * @param pattern the file pattern to generate type definitions for
6
6
  * @param options the CLI options
7
7
  */
8
- export declare const generate: (pattern: string, options: ConfigOptions) => Promise<void>;
8
+ export declare const generate: (pattern: string, options: IConfigOptions) => Promise<void>;
9
9
  //# sourceMappingURL=generate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/core/generate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,YAAmB,MAAM,WAAW,aAAa,KAAG,OAAO,CAAC,IAAI,CAapF,CAAC"}
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/core/generate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,YAAmB,MAAM,WAAW,cAAc,KAAG,OAAO,CAAC,IAAI,CAarF,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ConfigOptions } from "./types.js";
2
- export declare const listDifferent: (pattern: string, options: ConfigOptions) => Promise<void>;
3
- export declare const checkFile: (file: string, options: ConfigOptions) => Promise<boolean>;
1
+ import type { IConfigOptions } from "./types.js";
2
+ export declare const listDifferent: (pattern: string, options: IConfigOptions) => Promise<void>;
3
+ export declare const checkFile: (file: string, options: IConfigOptions) => Promise<boolean>;
4
4
  //# sourceMappingURL=list-different.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-different.d.ts","sourceRoot":"","sources":["../../src/core/list-different.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,aAAa,YAAmB,MAAM,WAAW,aAAa,KAAG,OAAO,CAAC,IAAI,CAQzF,CAAC;AAEF,eAAO,MAAM,SAAS,SAAgB,MAAM,WAAW,aAAa,KAAG,OAAO,CAAC,OAAO,CA+BrF,CAAC"}
1
+ {"version":3,"file":"list-different.d.ts","sourceRoot":"","sources":["../../src/core/list-different.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,aAAa,YAAmB,MAAM,WAAW,cAAc,KAAG,OAAO,CAAC,IAAI,CAQ1F,CAAC;AAEF,eAAO,MAAM,SAAS,SAAgB,MAAM,WAAW,cAAc,KAAG,OAAO,CAAC,OAAO,CA+BtF,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ConfigOptions } from "./types.js";
1
+ import type { IConfigOptions } from "./types.js";
2
2
  /**
3
3
  * Return the files matching the given pattern and alert the user if only 0 or 1
4
4
  * files matched.
@@ -6,5 +6,5 @@ import type { ConfigOptions } from "./types.js";
6
6
  * @param pattern the file pattern to generate type definitions for
7
7
  * @param options the CLI options
8
8
  */
9
- export declare function listFilesAndPerformSanityChecks(pattern: string, options: ConfigOptions): string[];
9
+ export declare function listFilesAndPerformSanityChecks(pattern: string, options: IConfigOptions): string[];
10
10
  //# sourceMappingURL=list-files-and-perform-sanity-checks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-files-and-perform-sanity-checks.d.ts","sourceRoot":"","sources":["../../src/core/list-files-and-perform-sanity-checks.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE,CAiBjG"}
1
+ {"version":3,"file":"list-files-and-perform-sanity-checks.d.ts","sourceRoot":"","sources":["../../src/core/list-files-and-perform-sanity-checks.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM,EAAE,CAiBlG"}
@@ -1,8 +1,8 @@
1
- import type { ConfigOptions } from "./types.js";
1
+ import type { IConfigOptions } from "./types.js";
2
2
  /**
3
3
  * Given a single file remove the generated types if they exist
4
4
  *
5
5
  * @param file the SCSS file to generate types for
6
6
  */
7
- export declare const removeSCSSTypeDefinitionFile: (file: string, options: ConfigOptions) => void;
7
+ export declare const removeSCSSTypeDefinitionFile: (file: string, options: IConfigOptions) => void;
8
8
  //# sourceMappingURL=remove-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-file.d.ts","sourceRoot":"","sources":["../../src/core/remove-file.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAmBhD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,SAAU,MAAM,WAAW,aAAa,KAAG,IAGnF,CAAC"}
1
+ {"version":3,"file":"remove-file.d.ts","sourceRoot":"","sources":["../../src/core/remove-file.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAmBjD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,SAAU,MAAM,WAAW,cAAc,KAAG,IAGpF,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import type { LogLevel } from "../core/alerts.js";
2
- import type { SASSOptions } from "../sass/file-to-class-names.js";
2
+ import type { ISASSOptions } from "../sass/file-to-class-names.js";
3
3
  import type { ExportType, QuoteType } from "../typescript/class-names-to-type-definition.js";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export type CLIOnlyOptions = Extract<keyof SASSOptions, "importer">;
7
+ export type CLIOnlyOptions = Extract<keyof ISASSOptions, "importer">;
8
8
  /**
9
9
  * @public
10
10
  */
11
- export interface CLIOptions extends Exclude<SASSOptions, CLIOnlyOptions> {
11
+ export interface ICLIOptions extends Exclude<ISASSOptions, CLIOnlyOptions> {
12
12
  banner: string;
13
13
  ignore: string[];
14
14
  ignoreInitial: boolean;
@@ -26,6 +26,6 @@ export interface CLIOptions extends Exclude<SASSOptions, CLIOnlyOptions> {
26
26
  /**
27
27
  * @public
28
28
  */
29
- export interface ConfigOptions extends CLIOptions, SASSOptions {
29
+ export interface IConfigOptions extends ICLIOptions, ISASSOptions {
30
30
  }
31
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE7F;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,WAAW,EAAE,UAAU,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,WAAW,EAAE,cAAc,CAAC;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wBAAwB,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU,EAAE,WAAW;CAAG"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE7F;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,YAAY,EAAE,UAAU,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO,CAAC,YAAY,EAAE,cAAc,CAAC;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wBAAwB,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW,EAAE,YAAY;CAAG"}
@@ -1,9 +1,9 @@
1
- import type { ConfigOptions } from "./types.js";
1
+ import type { IConfigOptions } from "./types.js";
2
2
  /**
3
3
  * Watch a file glob and generate the corresponding types.
4
4
  *
5
5
  * @param pattern the file pattern to watch for file changes or additions
6
6
  * @param options the CLI options
7
7
  */
8
- export declare const watch: (pattern: string, options: ConfigOptions) => void;
8
+ export declare const watch: (pattern: string, options: IConfigOptions) => void;
9
9
  //# sourceMappingURL=watch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/core/watch.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD;;;;;GAKG;AACH,eAAO,MAAM,KAAK,YAAa,MAAM,WAAW,aAAa,KAAG,IAuB/D,CAAC"}
1
+ {"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/core/watch.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD;;;;;GAKG;AACH,eAAO,MAAM,KAAK,YAAa,MAAM,WAAW,cAAc,KAAG,IAuBhE,CAAC"}
@@ -1,9 +1,9 @@
1
- import type { CLIOptions } from "./types.js";
1
+ import type { ICLIOptions } from "./types.js";
2
2
  /**
3
3
  * Given a single file generate the proper types.
4
4
  *
5
5
  * @param file the SCSS file to generate types for
6
6
  * @param options the CLI options
7
7
  */
8
- export declare const writeFile: (file: string, options: CLIOptions) => Promise<void>;
8
+ export declare const writeFile: (file: string, options: ICLIOptions) => Promise<void>;
9
9
  //# sourceMappingURL=write-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"write-file.d.ts","sourceRoot":"","sources":["../../src/core/write-file.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,SAAS,SAAgB,MAAM,WAAW,UAAU,KAAG,OAAO,CAAC,IAAI,CAsD/E,CAAC"}
1
+ {"version":3,"file":"write-file.d.ts","sourceRoot":"","sources":["../../src/core/write-file.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,SAAS,SAAgB,MAAM,WAAW,WAAW,KAAG,OAAO,CAAC,IAAI,CAsDhF,CAAC"}
package/esm/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export type { CLIOnlyOptions, CLIOptions, ConfigOptions } from "./core/types.js";
1
+ export type { CLIOnlyOptions, ICLIOptions, IConfigOptions } from "./core/types.js";
2
2
  export { type ExportType, type QuoteType } from "./typescript/class-names-to-type-definition.js";
3
3
  export { LOG_LEVELS, type LogLevel } from "./core/alerts.js";
4
- export type { InternalSassOptions, SASSOptions } from "./sass/file-to-class-names.js";
5
- export type { Aliases, Importer, SASSImporterOptions, SyncMode } from "./sass/importer.js";
4
+ export type { InternalSassOptions, ISASSOptions } from "./sass/file-to-class-names.js";
5
+ export type { IAliases, Importer, ISASSImporterOptions, SyncMode } from "./sass/importer.js";
6
6
  export { IMPLEMENTATIONS, type Implementations } from "./implementations/implementations.js";
7
7
  export { main as default } from "./main.js";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACtF,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE7F,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACvF,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE7F,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
package/esm/load.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type CLIOptions, type ConfigOptions } from "./core/types.js";
1
+ import { type ICLIOptions, type IConfigOptions } from "./core/types.js";
2
2
  /**
3
3
  * Load a custom config file in the project root directory with any options for this package.
4
4
  *
@@ -7,8 +7,8 @@ import { type CLIOptions, type ConfigOptions } from "./core/types.js";
7
7
  * - Default export: `export default {}`
8
8
  * - `module.exports = {}`
9
9
  */
10
- export declare const loadConfig: () => Promise<Record<string, never> | ConfigOptions>;
11
- export declare const DEFAULT_OPTIONS: CLIOptions;
10
+ export declare const loadConfig: () => Promise<Record<string, never> | IConfigOptions>;
11
+ export declare const DEFAULT_OPTIONS: ICLIOptions;
12
12
  /**
13
13
  * Given both the CLI and config file options merge into a single options object.
14
14
  *
@@ -17,5 +17,5 @@ export declare const DEFAULT_OPTIONS: CLIOptions;
17
17
  * Some options are only available in the config file. For example, a custom function can't
18
18
  * be easily defined via the CLI so some complex options are only available in the config file.
19
19
  */
20
- export declare const mergeOptions: (cliOptions: Partial<CLIOptions>, configOptions: Partial<ConfigOptions>) => ConfigOptions;
20
+ export declare const mergeOptions: (cliOptions: Partial<ICLIOptions>, configOptions: Partial<IConfigOptions>) => IConfigOptions;
21
21
  //# sourceMappingURL=load.d.ts.map
package/esm/load.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAkBtE;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,aAAa,CA0BhF,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,UAiB7B,CAAC;AAYF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,eACT,OAAO,CAAC,UAAU,CAAC,iBAChB,OAAO,CAAC,aAAa,CAAC,KACtC,aAMF,CAAC"}
1
+ {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAkBxE;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,cAAc,CA0BjF,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,WAiB7B,CAAC;AAYF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,eACT,OAAO,CAAC,WAAW,CAAC,iBACjB,OAAO,CAAC,cAAc,CAAC,KACvC,cAMF,CAAC"}
package/esm/main.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { type CLIOptions } from "./core/types.js";
1
+ import { type ICLIOptions } from "./core/types.js";
2
2
  /**
3
3
  * @public
4
4
  */
5
- export declare const main: (pattern: string, cliOptions: Partial<CLIOptions>) => Promise<void>;
5
+ export declare const main: (pattern: string, cliOptions: Partial<ICLIOptions>) => Promise<void>;
6
6
  //# sourceMappingURL=main.d.ts.map
package/esm/main.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD;;GAEG;AACH,eAAO,MAAM,IAAI,YAAmB,MAAM,cAAc,OAAO,CAAC,UAAU,CAAC,kBAgC1E,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKnD;;GAEG;AACH,eAAO,MAAM,IAAI,YAAmB,MAAM,cAAc,OAAO,CAAC,WAAW,CAAC,kBAgC3E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type Options } from "sass";
2
2
  import { type Implementations } from "../implementations/implementations.js";
3
- import { type SASSImporter, type SASSImporterOptions, type SyncMode } from "./importer.js";
3
+ import { type ISASSImporterOptions, type SASSImporter, type SyncMode } from "./importer.js";
4
4
  export type ClassName = string;
5
5
  declare const transformersMap: {
6
6
  readonly camel: (className: ClassName) => string;
@@ -20,13 +20,13 @@ export type InternalSassOptions = Pick<Options<SyncMode>, "style" | "loadPaths"
20
20
  /**
21
21
  * @public
22
22
  */
23
- export interface SASSOptions extends SASSImporterOptions, InternalSassOptions {
23
+ export interface ISASSOptions extends ISASSImporterOptions, InternalSassOptions {
24
24
  nameFormat?: string | string[];
25
25
  implementation: Implementations;
26
26
  async?: boolean;
27
27
  importers?: SASSImporter<SyncMode>[];
28
28
  }
29
29
  export declare const nameFormatDefault: NameFormatWithTransformer;
30
- export declare const fileToClassNames: (file: string, { style, loadPaths, silenceDeprecations, nameFormat: rawNameFormat, implementation, aliases, aliasPrefixes, importers, async, }?: SASSOptions) => Promise<string[]>;
30
+ export declare const fileToClassNames: (file: string, { style, loadPaths, silenceDeprecations, nameFormat: rawNameFormat, implementation, aliases, aliasPrefixes, importers, async, }?: ISASSOptions) => Promise<string[]>;
31
31
  export {};
32
32
  //# sourceMappingURL=file-to-class-names.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-to-class-names.d.ts","sourceRoot":"","sources":["../../src/sass/file-to-class-names.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EAAE,KAAK,eAAe,EAAqB,MAAM,uCAAuC,CAAC;AAEhG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAmB,MAAM,eAAe,CAAC;AAG5G,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAK/B,QAAA,MAAM,eAAe;aACjB,KAAK,cAAc,SAAS;aAC5B,MAAM,cAAc,SAAS;aAC7B,KAAK,cAAc,SAAS;aAC5B,IAAI,cAAc,SAAS;aAC3B,KAAK,cAAc,SAAS;aAC5B,KAAK,cAAc,SAAS;CACtB,CAAC;AAEX,KAAK,yBAAyB,GAAG,MAAM,OAAO,eAAe,CAAC;AAG9D,eAAO,MAAM,YAAY,oFAAqD,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,qBAAqB,CAAC,CAAC;AAEzG;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,mBAAmB,EAAE,mBAAmB;IACzE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,cAAc,EAAE,eAAe,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,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AAiB,EAAE,yBAAmC,CAAC;AAEpE,eAAO,MAAM,gBAAgB,SACnB,MAAM,oIAWT,YAAY,sBAmDlB,CAAC"}
@@ -12,12 +12,12 @@ export type { AsyncImporter as SASSAsyncImporter, Importer as SASSImporter };
12
12
  /**
13
13
  * @public
14
14
  */
15
- export interface Aliases {
15
+ export interface IAliases {
16
16
  [index: string]: string;
17
17
  }
18
18
  interface IAliasImporterOptions {
19
- aliases: Aliases;
20
- aliasPrefixes: Aliases;
19
+ aliases: IAliases;
20
+ aliasPrefixes: IAliases;
21
21
  }
22
22
  /**
23
23
  * Construct a SASS importer to create aliases for imports.
@@ -27,9 +27,9 @@ export declare const aliasImporter: <TSync extends SyncMode = "sync">({ aliases,
27
27
  /**
28
28
  * @public
29
29
  */
30
- export interface SASSImporterOptions {
31
- aliases?: Aliases;
32
- aliasPrefixes?: Aliases;
30
+ export interface ISASSImporterOptions {
31
+ aliases?: IAliases;
32
+ aliasPrefixes?: IAliases;
33
33
  importers?: Importer[];
34
34
  }
35
35
  /**
@@ -38,5 +38,5 @@ export interface SASSImporterOptions {
38
38
  * - Given aliases and alias prefix options, add a custom alias importer.
39
39
  * - Given custom SASS importer(s), append to the list of importers.
40
40
  */
41
- export declare const customImporters: <TSync extends SyncMode = "sync">({ aliases, aliasPrefixes, importers, }: SASSImporterOptions) => Importer<TSync>[];
41
+ export declare const customImporters: <TSync extends SyncMode = "sync">({ aliases, aliasPrefixes, importers, }: ISASSImporterOptions) => Importer<TSync>[];
42
42
  //# sourceMappingURL=importer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"importer.d.ts","sourceRoot":"","sources":["../../src/sass/importer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAa,QAAQ,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC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G,YAAY,CAAC,KAAK,CAAC,CAAC;AAElG,KAAK,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AAEvC,YAAY,EAAE,aAAa,IAAI,iBAAiB,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED,UAAU,qBAAqB;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,+BACO,qBAAqB,WAC5C,MAAM,kBAYX,CAAC;AAEN,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,QAAQ,GAAG,MAAM,+BAG1D,qBAAqB,KAAG,YAAY,CAAC,KAAK,CAU5C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,SAAS,QAAQ,GAAG,MAAM,0CAI5D,oBAAoB,KAAG,QAAQ,CAAC,KAAK,CAAC,EAGxC,CAAC"}
@@ -5,19 +5,24 @@ import { Options } from 'sass';
5
5
  /**
6
6
  * @public
7
7
  */
8
- export declare interface Aliases {
9
- [index: string]: string;
10
- }
8
+ export declare type CLIOnlyOptions = Extract<keyof ISASSOptions, "importer">;
11
9
 
12
10
  /**
13
11
  * @public
14
12
  */
15
- export declare type CLIOnlyOptions = Extract<keyof SASSOptions, "importer">;
13
+ export declare type ExportType = "named" | "default";
14
+
15
+ /**
16
+ * @public
17
+ */
18
+ export declare interface IAliases {
19
+ [index: string]: string;
20
+ }
16
21
 
17
22
  /**
18
23
  * @public
19
24
  */
20
- export declare interface CLIOptions extends Exclude<SASSOptions, CLIOnlyOptions> {
25
+ export declare interface ICLIOptions extends Exclude<ISASSOptions, CLIOnlyOptions> {
21
26
  banner: string;
22
27
  ignore: string[];
23
28
  ignoreInitial: boolean;
@@ -36,14 +41,9 @@ export declare interface CLIOptions extends Exclude<SASSOptions, CLIOnlyOptions>
36
41
  /**
37
42
  * @public
38
43
  */
39
- export declare interface ConfigOptions extends CLIOptions, SASSOptions {
44
+ export declare interface IConfigOptions extends ICLIOptions, ISASSOptions {
40
45
  }
41
46
 
42
- /**
43
- * @public
44
- */
45
- export declare type ExportType = "named" | "default";
46
-
47
47
  /**
48
48
  * @public
49
49
  * A list of all possible SASS package implementations that can be used to
@@ -71,42 +71,42 @@ export declare type InternalSassOptions = Pick<Options<SyncMode>, "style" | "loa
71
71
  /**
72
72
  * @public
73
73
  */
74
- export declare const LOG_LEVELS: readonly ["verbose", "error", "info", "silent"];
74
+ export declare interface ISASSImporterOptions {
75
+ aliases?: IAliases;
76
+ aliasPrefixes?: IAliases;
77
+ importers?: Importer[];
78
+ }
75
79
 
76
80
  /**
77
81
  * @public
78
82
  */
79
- export declare type LogLevel = (typeof LOG_LEVELS)[number];
83
+ export declare interface ISASSOptions extends ISASSImporterOptions, InternalSassOptions {
84
+ nameFormat?: string | string[];
85
+ implementation: Implementations;
86
+ async?: boolean;
87
+ importers?: Importer<SyncMode>[];
88
+ }
80
89
 
81
90
  /**
82
91
  * @public
83
92
  */
84
- declare const main: (pattern: string, cliOptions: Partial<CLIOptions>) => Promise<void>;
85
- export default main;
93
+ export declare const LOG_LEVELS: readonly ["verbose", "error", "info", "silent"];
86
94
 
87
95
  /**
88
96
  * @public
89
97
  */
90
- export declare type QuoteType = "single" | "double";
98
+ export declare type LogLevel = (typeof LOG_LEVELS)[number];
91
99
 
92
100
  /**
93
101
  * @public
94
102
  */
95
- export declare interface SASSImporterOptions {
96
- aliases?: Aliases;
97
- aliasPrefixes?: Aliases;
98
- importers?: Importer[];
99
- }
103
+ declare const main: (pattern: string, cliOptions: Partial<ICLIOptions>) => Promise<void>;
104
+ export default main;
100
105
 
101
106
  /**
102
107
  * @public
103
108
  */
104
- export declare interface SASSOptions extends SASSImporterOptions, InternalSassOptions {
105
- nameFormat?: string | string[];
106
- implementation: Implementations;
107
- async?: boolean;
108
- importers?: Importer<SyncMode>[];
109
- }
109
+ export declare type QuoteType = "single" | "double";
110
110
 
111
111
  /**
112
112
  * @public
@@ -1,9 +1,9 @@
1
- import type { ConfigOptions } from "../core/types.js";
1
+ import type { IConfigOptions } from "../core/types.js";
2
2
  /**
3
3
  * Given a file path to a SCSS file, generate the corresponding type definition
4
4
  * file path.
5
5
  *
6
6
  * @param file the SCSS file path
7
7
  */
8
- export declare const getTypeDefinitionPath: (file: string, options: ConfigOptions) => string;
8
+ export declare const getTypeDefinitionPath: (file: string, options: IConfigOptions) => string;
9
9
  //# sourceMappingURL=get-type-definition-path.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-type-definition-path.d.ts","sourceRoot":"","sources":["../../src/typescript/get-type-definition-path.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,SAAU,MAAM,WAAW,aAAa,KAAG,MAiB5E,CAAC"}
1
+ {"version":3,"file":"get-type-definition-path.d.ts","sourceRoot":"","sources":["../../src/typescript/get-type-definition-path.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,SAAU,MAAM,WAAW,cAAc,KAAG,MAiB7E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@najemi-software/typed-scss-modules",
3
- "version": "13.11.0",
3
+ "version": "14.0.0-alpha.60.1",
4
4
  "private": false,
5
5
  "description": "TypeScript type definition generator for SCSS CSS Modules",
6
6
  "keywords": [
@@ -83,7 +83,7 @@
83
83
  "@gooddata/eslint-config": "^11.46.0",
84
84
  "@gooddata/oxlint-config": "^11.46.0",
85
85
  "@microsoft/api-extractor": "^7.55.2",
86
- "@types/node": "^22.19.3",
86
+ "@types/node": "^24.13.3",
87
87
  "@types/reserved-words": "^0.1.0",
88
88
  "@types/yargs": "^17.0.35",
89
89
  "@typescript-eslint/eslint-plugin": "8.58.0",
@@ -133,7 +133,7 @@
133
133
  ]
134
134
  },
135
135
  "engines": {
136
- "node": ">=22.19",
136
+ "node": ">=24.12",
137
137
  "pnpm": ">=11"
138
138
  },
139
139
  "packageManager": "pnpm@11.12.0"