Files
DefinitelyTyped/types/jest-docblock/index.d.ts
2017-09-10 21:39:27 +08:00

15 lines
488 B
TypeScript

// Type definitions for jest-docblock 21.0
// Project: https://github.com/facebook/jest/tree/master/packages/jest-docblock
// Definitions by: Ika <https://github.com/ikatyang>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* extract the "first" docblock from code, return empty string if not found.
*/
export function extract(code: string): string;
/**
* parse @pragma from docblock.
*/
export function parse(docblock: string): { [pragma: string]: string };