1.5.2 • Published 6 months ago
@types/detectos.js v1.5.2
Installation
npm install --save @types/detectos.js
Summary
This package contains type definitions for detectos.js (https://github.com/1000tech/detectOS.js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/detectos.js.
index.d.ts
// Type definitions for detectos.js 1.5
// Project: https://github.com/1000tech/detectOS.js
// Definitions by: János Márkus <https://github.com/Aresius423>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface PropertyData {
string?: string;
prop?: string | undefined;
subString: string;
identity: string;
versionSearch?: string;
}
declare class DetectOS {
constructor();
browser: string | null;
version: string | null;
OS: string | null;
searchString(data: PropertyData[]): string | null;
searchVersion(dataString: string): number | null;
dataBrowser(): PropertyData[];
dataOS(): PropertyData[];
}
export default DetectOS;
Additional Details
- Last updated: Tue, 27 Jul 2021 21:31:24 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by János Márkus.