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
18 lines
546 B
TypeScript
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;
|