1.10.3 • Published 6 months ago
@types/string-pixel-width v1.10.3
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.