DefinitelyTyped/types/detect-browser/index.d.ts
2017-10-26 11:41:37 -07:00

28 lines
597 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";
export function detect(): null | {
name: BrowserName | "node";
version: string;
os: string;
};