forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platform.d.ts
30 lines (24 loc) · 770 Bytes
/
platform.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Type definitions for Platform 1.0.0
// Project: https://github.com/bestiejs/platform.js
// Definitions by: Jake Hickman <https://github.com/JakeH/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface PlatformStatic {
description?: string;
layout?: string;
manufacturer?: string;
name?: string;
prerelease?: string;
product?: string;
ua?: string;
version?: string;
os?: PlatformOS;
parse?(ua: string): PlatformStatic;
toString?(): string;
}
interface PlatformOS {
architecture?: number; //platform's docs say this is a string, but their code doesn't agree
family?: string;
version?: string;
toString(): string;
}
declare var platform: PlatformStatic;