@types/phone-formatter
Version:
TypeScript definitions for phone-formatter
28 lines (21 loc) • 893 B
Markdown
# Installation
> `npm install --save @types/phone-formatter`
# Summary
This package contains type definitions for phone-formatter (https://github.com/stevekinney/node-phone-formatter).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone-formatter.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone-formatter/index.d.ts)
````ts
declare module "phone-formatter" {
export interface FormatOptions {
normalize: boolean;
}
export function normalize(digits: string): string;
export function format(digits: string, format: string, options?: FormatOptions): string;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: none
# Credits
These definitions were written by [Seth Westphal](https://github.com/westy92).