mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
27 lines
436 B
TypeScript
27 lines
436 B
TypeScript
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_'
|
|
});
|