Skip to content

Commit

Permalink
Merge 08b3bb9 into 7844ed3
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz committed Apr 1, 2020
2 parents 7844ed3 + 08b3bb9 commit d4a23b2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/**/*.d.ts
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "less-vars-to-js",
"version": "0.0.0-development",
"typings": "./typings.d.ts",
"description": "Read LESS variables from the contents of a file and returning them as a javascript object.",
"main": "dist/index.js",
"scripts": {
Expand Down
12 changes: 12 additions & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Type definitions for less-vars-to-js
declare module 'less-vars-to-js' {
interface Option {
dictionary?: object;
resolveVariables?: boolean
stripPrefix?: boolean
}

function lessVarsToJS(sheet: string, option?: Option): {};

export default lessVarsToJS
}

0 comments on commit d4a23b2

Please sign in to comment.