mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
31 lines
643 B
TypeScript
31 lines
643 B
TypeScript
// Type definitions for detect-browser 2.0
|
|
// Project: https://github.com/DamonOehlman/detect-browser
|
|
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
export type BrowserName =
|
|
"android" |
|
|
"bb10" |
|
|
"chrome" |
|
|
"crios" |
|
|
"edge" |
|
|
"firefox" |
|
|
"fxios" |
|
|
"ie" |
|
|
"ios" |
|
|
"kakaotalk" |
|
|
"opera" |
|
|
"phantomjs" |
|
|
"safari" |
|
|
"vivaldi" |
|
|
"yandexbrowser" |
|
|
"node";
|
|
|
|
export interface BrowserInfo {
|
|
name: BrowserName;
|
|
version: string;
|
|
os: string;
|
|
}
|
|
|
|
export function detect(): null | BrowserInfo;
|