Move all packages to a types directory

This commit is contained in:
Andy Hanson
2017-03-24 14:27:52 -07:00
parent f9869dc191
commit 354cec620d
13846 changed files with 0 additions and 0 deletions

15
types/stringify-object/index.d.ts vendored Normal file
View File

@@ -0,0 +1,15 @@
// Type definitions for stringify-object 3.1
// Project: https://github.com/yeoman/stringify-object
// Definitions by: Chris Khoo <https://github.com/khoomeister>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace stringifyObject { }
declare function stringifyObject(o: any, options?: {
indent?: string,
singleQuotes?: boolean,
filter?: (o: any, prop: string) => boolean,
inlineCharacterLimit?: number
}): string;
export = stringifyObject;

View File

@@ -0,0 +1,26 @@
import * as stringifyObject from 'stringify-object';
stringifyObject({ a: 1, b: 2, c: 3 });
stringifyObject('abc', {
indent: ' '
});
stringifyObject('123', {
indent: ' '
});
stringifyObject(123, {
indent: ' ',
singleQuotes: false
});
stringifyObject([1, 2, 3], {
indent: ' ',
singleQuotes: false,
inlineCharacterLimit: 12
});
stringifyObject([1, 2, 3], {
filter: (o, prop) => prop !== '_hidden_'
});

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"stringify-object-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "../tslint.json" }