npm install --save @types/doi-regex
This package contains type definitions for doi-regex (https://github.com/regexhq/doi-regex).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/doi-regex.
interface Options {
exact?: boolean;
}
interface PathOptions {
protocol?: boolean;
}
declare function doi(options?: Options): RegExp;
declare namespace doi {
function declared(options?: Options): RegExp;
function groups(doi: string): ReturnType<RegExp["exec"]>;
function resolvePath(options?: PathOptions): RegExp;
}
export = doi;
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
These definitions were written by Chris Wilkinson.