-
Notifications
You must be signed in to change notification settings - Fork 2
/
global.d.ts
71 lines (66 loc) · 1.76 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* eslint-disable no-var */
import { Mongo } from "meteor/mongo";
import { DetailedHTMLProps, HTMLAttributes } from "react";
import "styled-components";
interface ShareData {
text?: string;
title?: string;
url?: string;
}
declare global {
var __DEV__: boolean;
var SERVER: boolean;
var VIZSLA_VERSION: string;
namespace JSX {
interface IntrinsicElements {
center: DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
marquee: DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> & {
scrollAmount: string;
};
}
}
}
declare module "meteor/meteor" {
namespace Meteor {
interface UserProfile {
[str: string]: unknown;
name?: string;
}
function loginWithBornhack(): void;
interface UserServices {
bornhack?: {
id: string;
teams: { team: string; camp: string }[];
};
}
}
}
declare module "meteor/accounts-base" {
namespace Accounts {
function addAutopublishFields(opts: {
forLoggedInUser: string[];
forOtherUsers: string[];
}): void;
function setDefaultPublishFields(fields: Mongo.FieldSpecifier): void;
function registerClientLoginFunction(
funcName: string,
func: () => void,
): void;
function callLoginFunction(funcName: string, args?: any[]): any;
namespace oauth {
function registerService(name: string): void;
function credentialRequestCompleteHandler(
callback?: (error?: Error) => void,
): (credentialTokenOrError: string | Error) => void;
}
}
}
interface ConfigError {
new (): Error;
}
declare module "meteor/service-configuration" {
var ServiceConfiguration: {
configurations: Mongo.Collection<Configuration & { clientId: string }>;
ConfigError: ConfigError;
};
}