mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 05:27:30 +00:00
11 lines
179 B
TypeScript
11 lines
179 B
TypeScript
import parse = require('parse-json');
|
|
|
|
parse(null);
|
|
parse('{}');
|
|
parse('{}', 'filepath');
|
|
parse('{}', () => null);
|
|
parse('{}', () => null, 'filepath');
|
|
|
|
// $ExpectError
|
|
parse(1);
|