yeet
This commit is contained in:
16
node_modules/react-native/flow/Position.js
generated
vendored
Normal file
16
node_modules/react-native/flow/Position.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict
|
||||
* @nolint
|
||||
* @format
|
||||
*/
|
||||
|
||||
declare class Position {
|
||||
coords: Coordinates;
|
||||
timestamp: number;
|
||||
mocked: boolean;
|
||||
}
|
47
node_modules/react-native/flow/Promise.js
generated
vendored
Normal file
47
node_modules/react-native/flow/Promise.js
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict
|
||||
* @format
|
||||
*/
|
||||
|
||||
// These annotations are copy/pasted from the built-in Flow definitions for
|
||||
// Native Promises with some non-standard APIs added in
|
||||
declare class Promise<+R> {
|
||||
constructor(
|
||||
callback: (
|
||||
resolve: (result?: Promise<R> | R) => void,
|
||||
reject: (error?: any) => void,
|
||||
) => mixed,
|
||||
): void;
|
||||
|
||||
then<U>(
|
||||
onFulfill?: ?(value: R) => Promise<U> | ?U,
|
||||
onReject?: ?(error: any) => Promise<U> | ?U,
|
||||
): Promise<U>;
|
||||
|
||||
catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>;
|
||||
|
||||
static resolve<T>(object?: Promise<T> | T): Promise<T>;
|
||||
static reject<T>(error?: any): Promise<T>;
|
||||
|
||||
static all<T: Iterable<mixed>>(
|
||||
promises: T,
|
||||
): Promise<$TupleMap<T, typeof $await>>;
|
||||
static race<T>(promises: Array<Promise<T>>): Promise<T>;
|
||||
|
||||
// Non-standard APIs
|
||||
|
||||
// See https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/__forks__/Promise.native.js#L21
|
||||
finally<U>(onFinally?: ?(value: any) => Promise<U> | U): Promise<U>;
|
||||
|
||||
done<U>(
|
||||
onFulfill?: ?(value: R) => mixed,
|
||||
onReject?: ?(error: any) => mixed,
|
||||
): void;
|
||||
|
||||
static cast<T>(object?: T): Promise<T>;
|
||||
}
|
14
node_modules/react-native/flow/Stringish.js
generated
vendored
Normal file
14
node_modules/react-native/flow/Stringish.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict
|
||||
* @format
|
||||
*/
|
||||
|
||||
// This type allows Facebook to internally Override
|
||||
// this type to allow our internationalization type which
|
||||
// is a string at runtime but Flow doesn't know that.
|
||||
declare type Stringish = string;
|
49
node_modules/react-native/flow/console.js
generated
vendored
Normal file
49
node_modules/react-native/flow/console.js
generated
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict
|
||||
* @format
|
||||
*/
|
||||
|
||||
declare module 'console' {
|
||||
declare function assert(value: any, ...message: any): void;
|
||||
declare function dir(
|
||||
obj: Object,
|
||||
options: {
|
||||
showHidden: boolean,
|
||||
depth: number,
|
||||
colors: boolean,
|
||||
...
|
||||
},
|
||||
): void;
|
||||
declare function error(...data: any): void;
|
||||
declare function info(...data: any): void;
|
||||
declare function log(...data: any): void;
|
||||
declare function time(label: any): void;
|
||||
declare function timeEnd(label: any): void;
|
||||
declare function trace(first: any, ...rest: any): void;
|
||||
declare function warn(...data: any): void;
|
||||
declare class Console {
|
||||
constructor(stdout: stream$Writable, stdin?: stream$Writable): void;
|
||||
assert(value: any, ...message: any): void;
|
||||
dir(
|
||||
obj: Object,
|
||||
options: {
|
||||
showHidden: boolean,
|
||||
depth: number,
|
||||
colors: boolean,
|
||||
...
|
||||
},
|
||||
): void;
|
||||
error(...data: any): void;
|
||||
info(...data: any): void;
|
||||
log(...data: any): void;
|
||||
time(label: any): void;
|
||||
timeEnd(label: any): void;
|
||||
trace(first: any, ...rest: any): void;
|
||||
warn(...data: any): void;
|
||||
}
|
||||
}
|
258
node_modules/react-native/flow/fbjs.js
generated
vendored
Normal file
258
node_modules/react-native/flow/fbjs.js
generated
vendored
Normal file
@ -0,0 +1,258 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict
|
||||
* @format
|
||||
* @nolint
|
||||
*/
|
||||
|
||||
declare module 'fbjs/lib/countDistinct' {
|
||||
declare module.exports: {|
|
||||
<T1, T2>(iter: Iterable<T1>, selector: (item: T1) => T2): number,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/warning' {
|
||||
declare module.exports: {|
|
||||
(condition: mixed, format: string, ...args: $ReadOnlyArray<mixed>): void,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/shallowEqual' {
|
||||
declare module.exports: {|
|
||||
(objA: mixed, objB: mixed): boolean,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/EventListener' {
|
||||
declare module.exports: {|
|
||||
listen(
|
||||
target: EventTarget,
|
||||
eventType: string,
|
||||
callback: any,
|
||||
): {remove(): void, ...},
|
||||
capture(
|
||||
target: EventTarget,
|
||||
eventType: string,
|
||||
callback: any,
|
||||
): {remove(): void, ...},
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/ExecutionEnvironment' {
|
||||
declare module.exports: {|
|
||||
+canUseDOM: boolean,
|
||||
+canUseWorkers: boolean,
|
||||
+canUseEventListeners: boolean,
|
||||
+canUseViewport: boolean,
|
||||
+isInWorker: boolean,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/UserAgentData' {
|
||||
declare module.exports: {|
|
||||
+browserArchitecture: string,
|
||||
+browserFullVersion: string,
|
||||
+browserMinorVersion: string,
|
||||
+browserName: string,
|
||||
+browserVersion: string,
|
||||
+deviceName: string,
|
||||
+engineName: string,
|
||||
+engineVersion: string,
|
||||
+platformArchitecture: string,
|
||||
+platformName: string,
|
||||
+platformVersion: string,
|
||||
+platformFullVersion: string,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/VersionRange' {
|
||||
declare module.exports: {|
|
||||
contains(range: string, version: string): boolean,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/base62' {
|
||||
declare module.exports: {|
|
||||
(number: number): string,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/compactArray' {
|
||||
declare module.exports: {|
|
||||
<T>(array: Array<T | null | void>): Array<T>,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/concatAllArray' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/crc32' {
|
||||
declare module.exports: {|
|
||||
(str: string): number,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/distinctArray' {
|
||||
declare module.exports: {|
|
||||
<T>(xs: Iterable<T>): Array<T>,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/emptyObject' {
|
||||
declare module.exports: {||};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/equalsSet' {
|
||||
declare module.exports: {|
|
||||
<T>(one: Set<T>, two: Set<T>): boolean,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/everyObject' {
|
||||
declare module.exports: {|
|
||||
(
|
||||
object: mixed,
|
||||
callback: (value: any, name: string, object: mixed) => any,
|
||||
context?: any,
|
||||
): boolean,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/everySet' {
|
||||
declare module.exports: {|
|
||||
<T>(
|
||||
object: ?Set<T>,
|
||||
callback: (value: any, name: string, object: Set<T>) => any,
|
||||
context?: any,
|
||||
): boolean,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/filterObject' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/forEachObject' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/groupArray' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/joinClasses' {
|
||||
declare module.exports: {|
|
||||
(className: mixed): string,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/keyMirrorRecursive' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/keyOf' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/maxBy' {
|
||||
declare module.exports: {|
|
||||
<A, B>(
|
||||
as: Iterable<A>,
|
||||
f: (a: A) => B,
|
||||
compare?: ?(u: B, v: B) => number,
|
||||
): ?A,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/memoizeStringOnly' {
|
||||
declare module.exports: {|
|
||||
<T>(callback: (s: string) => T): (s: string) => T,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/minBy' {
|
||||
declare module.exports: {|
|
||||
<A, B>(
|
||||
as: Iterable<A>,
|
||||
f: (a: A) => B,
|
||||
compare?: ?(u: B, v: B) => number,
|
||||
): ?A,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/partitionArray' {
|
||||
declare module.exports: {|
|
||||
<Tv>(
|
||||
array: Array<Tv>,
|
||||
predicate: (value: Tv, index: number, array: Array<Tv>) => boolean,
|
||||
context?: any,
|
||||
): [Array<Tv>, Array<Tv>],
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/partitionObject' {
|
||||
declare module.exports: {|
|
||||
<Tv>(
|
||||
object: {[key: string]: Tv, ...},
|
||||
callback: (
|
||||
value: Tv,
|
||||
key: string,
|
||||
object: {[key: string]: Tv, ...},
|
||||
) => boolean,
|
||||
context?: any,
|
||||
): [{[key: string]: Tv, ...}, {[key: string]: Tv, ...}],
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/partitionObjectByKey' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/performance' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/performanceNow' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/requestAnimationFrame' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/someObject' {
|
||||
declare module.exports: {|
|
||||
(
|
||||
object: mixed,
|
||||
callback: (value: any, name: string, object: mixed) => any,
|
||||
context?: any,
|
||||
): boolean,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/someSet' {
|
||||
declare module.exports: {|
|
||||
<T>(
|
||||
set: Set<T>,
|
||||
callback: (value: T, key: T, set: Set<T>) => boolean,
|
||||
context?: any,
|
||||
): boolean,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/keyMirror' {
|
||||
declare module.exports: {|
|
||||
<T: {...}>(obj: T): $ObjMapi<T, <K>(K) => K>,
|
||||
|};
|
||||
}
|
||||
|
||||
declare module 'fbjs/lib/invariant' {
|
||||
declare module.exports: {|
|
||||
(condition: mixed, format: string, ...args: Array<mixed>): void,
|
||||
|};
|
||||
}
|
1189
node_modules/react-native/flow/jest.js
generated
vendored
Normal file
1189
node_modules/react-native/flow/jest.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
19
node_modules/react-native/flow/use-subscription.js
generated
vendored
Normal file
19
node_modules/react-native/flow/use-subscription.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict
|
||||
* @format
|
||||
* @nolint
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
declare module 'use-subscription' {
|
||||
declare export function useSubscription<Value>(subscription: {|
|
||||
getCurrentValue: () => Value,
|
||||
subscribe: (callback: Function) => () => void,
|
||||
|}): Value;
|
||||
}
|
Reference in New Issue
Block a user