mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 16:45:10 +08:00
15 lines
488 B
TypeScript
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 };
|