mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* bootstraped folder structure for "protocol-buffers-schema" * npx prettier --write .\types\protocol-buffers-schema\** * drafted types for protocol-buffers-schema * moved types into dedicated file * added "strictFunctionTypes"-flag * drafted index.d.ts * added missing files to tsconfig * npx prettier --write .\types\protocol-buffers-schema\** * added "node" to types in tsconfig * removed redundant "export" keywords * added reference to node type(s) * added test case
10 lines
238 B
TypeScript
10 lines
238 B
TypeScript
import { Schema } from "./types";
|
|
declare namespace parse {
|
|
function parse(buffer: string | Buffer): Schema;
|
|
function stringify(schema: Schema): string;
|
|
}
|
|
|
|
declare function parse(buffer: string | Buffer): Schema;
|
|
|
|
export = parse;
|