0.1.3 • Published 6 months ago

@types/doi-regex v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/doi-regex

Summary

This package contains type definitions for doi-regex (https://github.com/regexhq/doi-regex).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/doi-regex.

index.d.ts

// Type definitions for doi-regex 0.1
// Project: https://github.com/regexhq/doi-regex
// Definitions by: Chris Wilkinson <https://github.com/thewilkybarkid>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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;

Additional Details

  • Last updated: Wed, 13 Oct 2021 19:01:33 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Chris Wilkinson.