mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Added typedefs for pretty
This commit is contained in:
parent
419d4edf69
commit
2411a2b6dc
11
types/pretty/index.d.ts
vendored
Normal file
11
types/pretty/index.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
// Type definitions for pretty 2.0
|
||||
// Project: https://github.com/jonschlinkert/pretty
|
||||
// Definitions by: Adam Zerella <https://github.com/adamzerella>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.3
|
||||
|
||||
export interface PrettyOptions {
|
||||
ocd: boolean;
|
||||
}
|
||||
|
||||
export function pretty(str: string, options?: PrettyOptions): string;
|
||||
5
types/pretty/pretty-tests.ts
Normal file
5
types/pretty/pretty-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import { pretty } from "pretty";
|
||||
|
||||
pretty(`<h1>nice</h1>`);
|
||||
|
||||
pretty(`<h1>nice</h1>`, {ocd: true});
|
||||
25
types/pretty/tsconfig.json
Normal file
25
types/pretty/tsconfig.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [
|
||||
|
||||
],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"pretty-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/pretty/tslint.json
Normal file
3
types/pretty/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user