mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
[@wordpress/block-serialization-default-parser] add new defini… (#36547)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
aa253dc91e
commit
0caf020569
@@ -0,0 +1,7 @@
|
||||
// Type definitions for @wordpress/block-serialization-default-parser 3.2
|
||||
// Project: https://github.com/WordPress/gutenberg/tree/master/packages/block-serialization-default-parser/README.md
|
||||
// Definitions by: Derek Sifford <https://github.com/dsifford>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.5
|
||||
|
||||
export * from '@wordpress/block-serialization-spec-parser';
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"@wordpress/block-serialization-default-parser": ["wordpress__block-serialization-default-parser"],
|
||||
"@wordpress/block-serialization-spec-parser": ["wordpress__block-serialization-spec-parser"]
|
||||
}
|
||||
},
|
||||
"files": ["index.d.ts", "wordpress__block-serialization-default-parser-tests.ts"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import { parse } from '@wordpress/block-serialization-default-parser';
|
||||
|
||||
// $ExpectType readonly Block[]
|
||||
parse('hello world');
|
||||
Reference in New Issue
Block a user