1.10.3 • Published 6 months ago

@types/string-pixel-width v1.10.3

Weekly downloads
1,836
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/string-pixel-width

Summary

This package contains type definitions for string-pixel-width (https://github.com/adambisek/string-pixel-width#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/string-pixel-width.

index.d.ts

// Type definitions for string-pixel-width 1.7
// Project: https://github.com/adambisek/string-pixel-width#readme
// Definitions by: Graham Dyson <https://github.com/grahamdyson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export = getWidth;

declare function getWidth(
    string: string,
    settings?: Settings,
): number;

interface Settings {
    bold?: boolean | undefined;
    font?: "andale mono"|"arial"|"avenir next"|"avenir"|"comic sans ms"|"courier new"|"georgia"|"impact"|"open sans"|"tahoma"|"times new roman"|"trebuchet ms"|"verdana"|"webdings" | undefined;
    italic?: boolean | undefined;
    size?: number | undefined;
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 22:33:01 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Graham Dyson.

1.10.3

6 months ago

1.10.2

7 months ago

1.10.1

8 months ago

1.10.0

2 years ago

1.7.2

3 years ago

1.7.1

4 years ago

1.7.0

5 years ago