DefinitelyTyped/types/protocol-buffers-schema/index.d.ts
Claas Ahlrichs 25e3419e81 new package: protocol-buffers-schema (#33745)
* 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
2019-03-11 11:06:05 -07:00

18 lines
546 B
TypeScript

// Type definitions for protocol-buffers-schema 3.3
// Project: https://github.com/mafintosh/protocol-buffers-schema
// Definitions by: Claas Ahlrichs <https://github.com/claasahl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
/// <reference types="node" />
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;