-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/**/*.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
declare namespace lessVarsToJS { | ||
interface Option { | ||
|
||
/** | ||
* Resolves variables when they are defined in the same file. | ||
* | ||
* @default false | ||
*/ | ||
resolveVariables?: boolean; | ||
|
||
/** | ||
* When `resolveVariables` is true, passes an object to use when the value cannot be resolved in the same file. | ||
* | ||
* @default {} | ||
*/ | ||
dictionary?: object; | ||
|
||
/** | ||
* Removes the `@` or `$` in the returned object keys. | ||
* | ||
* @default false | ||
*/ | ||
stripPrefix?: boolean; | ||
} | ||
} | ||
|
||
/** | ||
* Takes in the contents of a less file as a string and returns an object containing all the variables it found | ||
* | ||
* @param sheet - less string | ||
* @param option = {} - {@link lessVarsToJS.Option} | ||
*/ | ||
declare function lessVarsToJS(sheet: string, option?: lessVarsToJS.Option): {}; | ||
|
||
export = lessVarsToJS; |