Skip to content

Commit

Permalink
TypeScript declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mvasilkov committed Jan 19, 2020
1 parent dfebcbb commit 68f0133
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions javascript/outdent.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
interface IOptions {
strict?: boolean;
endWithNewline?: boolean;
tabSize?: number;
}
export declare function outdentLines(a: string[], options?: IOptions): string[];
export declare function outdent(a: string, options?: IOptions): string;
export {};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"unindent"
],
"main": "javascript/outdent.js",
"types": "javascript/outdent.d.ts",
"files": [
"javascript"
],
"repository": "git@github.com:mvasilkov/outdent.git",
"author": "Mark Vasilkov (https://github.com/mvasilkov)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ES2015",
"module": "commonjs",
// "declaration": true,
"declaration": true,
"outDir": "./javascript",
"rootDir": "./typescript",
"strict": true,
Expand Down

0 comments on commit 68f0133

Please sign in to comment.