mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
31 lines
744 B
TypeScript
31 lines
744 B
TypeScript
// 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/DefinitelyTyped/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;
|
|
|
|
|