gun/gun.d.ts
Orimay d53d157f19
New GUN typings (#1205)
* New GUN typings

* Fixing comments

* Gun schema is now supported

Co-authored-by: dbaranov <dbaranov@bellintegrator.com>
2022-02-18 23:17:41 -08:00

24 lines
449 B
TypeScript

import { IGun, LEX } from './types/gun';
declare const Gun: IGun;
export default Gun;
import {} from './types/gun/IGun';
declare module './types/gun/IGun' {
export interface IGun {
window: Window
}
}
declare global {
interface Window {
Gun: IGun;
GUN: IGun;
}
interface StringConstructor {
match(t: string, o: LEX | string): boolean;
random(length?: number, alphabet?: string): string;
}
}