text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```javascript
/* @flow strict-local */
import deepFreeze from 'deep-freeze';
import fullReducer from '../../boot/reducers';
import {
getMute,
getTopicVisibilityPolicy,
isTopicVisible,
isTopicVisibleInStream,
reducer,
} from '../muteModel';
import { EVENT, EVENT_MUTED_TOPICS } from '../../actionConstants';
im... | /content/code_sandbox/src/mute/__tests__/muteModel-test.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 2,532 |
```javascript
/* @flow strict-local */
import type { PerAccountAction, AccountIndependentAction, Orientation } from '../types';
import { APP_ONLINE, APP_ORIENTATION, DISMISS_SERVER_COMPAT_NOTICE } from '../actionConstants';
export const appOnline = (isOnline: boolean | null): AccountIndependentAction => ({
type: APP... | /content/code_sandbox/src/session/sessionActions.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 121 |
```javascript
/* @flow strict-local */
import type { GlobalState } from '../reduxTypes';
import type { Orientation, Action } from '../types';
import { keyOfIdentity } from '../account/accountMisc';
import { getIdentity, tryGetActiveAccountState } from '../account/accountsSelectors';
import {
REHYDRATE,
DEAD_QUEUE,
... | /content/code_sandbox/src/session/sessionReducer.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,673 |
```javascript
/* @flow strict-local */
import type { Narrow, Topic, PerAccountAction, ThunkAction, Outbox } from '../types';
import * as api from '../api';
import { INIT_TOPICS } from '../actionConstants';
import { isStreamNarrow, streamIdOfNarrow } from '../utils/narrow';
import { getAuth } from '../selectors';
import... | /content/code_sandbox/src/topics/topicActions.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 398 |
```javascript
/* @flow strict-local */
import React from 'react';
import type { Node } from 'react';
import { FlatList } from 'react-native';
import type { Stream, TopicExtended } from '../types';
import { createStyleSheet } from '../styles';
import TopicItem from '../streams/TopicItem';
import LoadingIndicator from '... | /content/code_sandbox/src/topics/TopicList.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 314 |
```javascript
/* @flow strict-local */
import deepFreeze from 'deep-freeze';
import {
DEAD_QUEUE,
APP_ONLINE,
REGISTER_ABORT,
APP_ORIENTATION,
GOT_PUSH_TOKEN,
TOGGLE_OUTBOX_SENDING,
DISMISS_SERVER_COMPAT_NOTICE,
REGISTER_START,
REGISTER_PUSH_TOKEN_START,
REGISTER_PUSH_TOKEN_END,
} from '../../actio... | /content/code_sandbox/src/session/__tests__/sessionReducer-test.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,208 |
```javascript
/* @flow strict-local */
import React, { useState, useCallback, useEffect } from 'react';
import type { Node } from 'react';
import type { RouteProp } from '../react-navigation';
import type { AppNavigationProp } from '../nav/AppNavigator';
import { useSelector, useDispatch } from '../react-redux';
impo... | /content/code_sandbox/src/topics/TopicListScreen.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 386 |
```javascript
/* @flow strict-local */
import type { TopicsState, PerAccountApplicableAction } from '../types';
import {
INIT_TOPICS,
EVENT_NEW_MESSAGE,
REGISTER_COMPLETE,
RESET_ACCOUNT_DATA,
} from '../actionConstants';
import { NULL_OBJECT } from '../nullObjects';
import { replaceItemInArray } from '../utils/... | /content/code_sandbox/src/topics/topicsReducer.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 350 |
```javascript
/* @flow strict-local */
import { createSelector } from 'reselect';
import type { Narrow, Selector, TopicExtended, TopicsState } from '../types';
import { getTopics } from '../directSelectors';
import { getUnread, getUnreadCountForTopic } from '../unread/unreadModel';
import { NULL_ARRAY } from '../nullO... | /content/code_sandbox/src/topics/topicSelectors.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 483 |
```javascript
/* @flow strict-local */
import deepFreeze from 'deep-freeze';
import * as eg from '../../__tests__/lib/exampleData';
import topicsReducer from '../topicsReducer';
import { INIT_TOPICS } from '../../actionConstants';
import { NULL_OBJECT } from '../../nullObjects';
describe('topicsReducer', () => {
d... | /content/code_sandbox/src/topics/__tests__/topicsReducer-test.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 845 |
```javascript
/* @flow strict-local */
import { getTopicsForNarrow, getTopicsForStream } from '../topicSelectors';
import { HOME_NARROW, streamNarrow } from '../../utils/narrow';
import * as eg from '../../__tests__/lib/exampleData';
import { makeMuteState } from '../../mute/__tests__/mute-testlib';
import { makeUnread... | /content/code_sandbox/src/topics/__tests__/topicsSelectors-test.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 891 |
```javascript
/* @flow strict-local */
import type { UserGroupsState, PerAccountApplicableAction } from '../types';
import {
REGISTER_COMPLETE,
EVENT_USER_GROUP_ADD,
EVENT_USER_GROUP_REMOVE,
EVENT_USER_GROUP_UPDATE,
EVENT_USER_GROUP_ADD_MEMBERS,
EVENT_USER_GROUP_REMOVE_MEMBERS,
RESET_ACCOUNT_DATA,
} from ... | /content/code_sandbox/src/user-groups/userGroupsReducer.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 426 |
```javascript
/* @flow strict-local */
import React, { useCallback, useContext, useMemo } from 'react';
import type { Node } from 'react';
import { View } from 'react-native';
import { IconPeople } from '../common/Icons';
import ZulipText from '../common/ZulipText';
import Touchable from '../common/Touchable';
import ... | /content/code_sandbox/src/user-groups/UserGroupItem.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 472 |
```javascript
/* @flow strict-local */
import deepFreeze from 'deep-freeze';
import * as eg from '../../__tests__/lib/exampleData';
import {
EVENT_USER_GROUP_ADD,
EVENT_USER_GROUP_REMOVE,
EVENT_USER_GROUP_UPDATE,
EVENT_USER_GROUP_ADD_MEMBERS,
EVENT_USER_GROUP_REMOVE_MEMBERS,
} from '../../actionConstants';
... | /content/code_sandbox/src/user-groups/__tests__/userGroupsReducer-test.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,336 |
```javascript
/* @flow strict-local */
import React, { useCallback } from 'react';
import type { Node } from 'react';
import { View } from 'react-native';
import type { EmojiType } from '../types';
import { createStyleSheet } from '../styles';
import ZulipText from '../common/ZulipText';
import Touchable from '../comm... | /content/code_sandbox/src/emoji/EmojiRow.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 292 |
```javascript
/* @flow strict-local */
import * as typeahead from '@zulip/shared/lib/typeahead';
import { defaultMemoize } from 'reselect';
import * as api from '../api';
import * as logging from '../utils/logging';
import type {
ThunkAction,
PerAccountAction,
ServerEmojiData,
EmojiType,
ReactionType,
Emoj... | /content/code_sandbox/src/emoji/data.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,633 |
```javascript
/* @flow strict-local */
import { createSelector } from 'reselect';
import type { Selector, ImageEmoji, ImageEmojiById, EmojiForShared } from '../types';
import { getRawRealmEmoji } from '../directSelectors';
import { getIdentity } from '../account/accountsSelectors';
import zulipExtraEmojiMap from './zul... | /content/code_sandbox/src/emoji/emojiSelectors.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 476 |
```javascript
/* @flow strict-local */
import React, { useState, useCallback } from 'react';
import type { Node } from 'react';
import { FlatList, LogBox } from 'react-native';
import type { RouteProp } from '../react-navigation';
import type { AppNavigationProp } from '../nav/AppNavigator';
import Screen from '../co... | /content/code_sandbox/src/emoji/EmojiPickerScreen.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 698 |
```javascript
/* @flow strict-local */
import React, { useContext, useMemo, type Node } from 'react';
import { Text } from 'react-native';
import { ThemeContext } from '../styles';
import { displayCharacterForUnicodeEmojiCode } from './data';
import { useSelector } from '../react-redux';
import { getRealm } from '../d... | /content/code_sandbox/src/emoji/UnicodeEmoji.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 289 |
```javascript
/* @flow strict-local */
import React, { useMemo } from 'react';
import type { Node } from 'react';
import { Image } from 'react-native';
import type { EmojiType } from '../types';
import { createStyleSheet } from '../styles';
import { useSelector } from '../react-redux';
import { getAllImageEmojiByCode ... | /content/code_sandbox/src/emoji/Emoji.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 239 |
```javascript
/* @flow strict-local */
import type { ImageEmoji } from '../types';
/**
* Make this to ressemble with realm emoji
* so that both emoji type can be handled in similiar way
* thus id has no meaning here
*/
const zulipExtraEmojiMap: {| [id: string]: ImageEmoji |} = {
zulip: {
reaction_type: 'zuli... | /content/code_sandbox/src/emoji/zulipExtraEmojiMap.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 141 |
```javascript
import deepFreeze from 'deep-freeze';
import {
getActiveImageEmojiById,
getAllImageEmojiById,
getAllImageEmojiByCode,
} from '../emojiSelectors';
describe('getActiveImageEmojiById', () => {
test('filter out all deactivated emojis', () => {
const state = {
accounts: [
{
... | /content/code_sandbox/src/emoji/__tests__/emojiSelectors-test.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 800 |
```javascript
/* @flow strict-local */
import { displayCharacterForUnicodeEmojiCode, getFilteredEmojis } from '../data';
describe('displayCharacterForUnicodeEmojiCode', () => {
// Tell ESLint to recognize `check` as a helper function that runs
// assertions.
/* eslint jest/expect-expect: ["error", { "assertFunct... | /content/code_sandbox/src/emoji/__tests__/data-test.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,125 |
```javascript
// flow-typed signature: 99b2d8ebd0ab4be20976dc62a3bbf54c
// flow-typed version: c6154227d1/redux_v4.x.x/flow_>=v0.89.x <=v0.103.x
declare module 'redux' {
/*
S = State
A = Action
D = Dispatch
*/
declare export type Action<T> = {
type: T,
...
}
declare export type Dispat... | /content/code_sandbox/flow-typed/redux_v4.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 801 |
```javascript
// flow-typed signature: 5ddcf688200e3506308fdcfa78ca48d9
// flow-typed version: 644a595e77/jest_v27.x.x/flow_>=v0.134.x
type JestMockFn<TArguments: $ReadOnlyArray<*>, TReturn> = {
(...args: TArguments): TReturn,
/**
* An object for introspecting mock calls
*/
mock: {
/**
* An array ... | /content/code_sandbox/flow-typed/jest_v27.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 9,424 |
```javascript
/* @flow strict-local */
/** Maps certain emoji to substitutes, for us to show instead. */
export const override: {| [code: string]: string |} = {
// Fix the "keypad" emoji, which are broken in Zulip's emoji database;
// use the codepoint sequences for them that appear in the Unicode spec.
// path_... | /content/code_sandbox/src/emoji/codePointMap.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 15,326 |
```javascript
// flow-typed signature: b80517b7c0c4c471e1e6fdbeb22ce46e
// flow-typed version: c6154227d1/prettier_v1.x.x/flow_>=v0.84.x <=v0.103.x
declare module "prettier" {
declare export type AST = { [key: string]: any, ... };
declare export type Doc = {
[key: string]: any,
...
};
declare export ty... | /content/code_sandbox/flow-typed/prettier_v1.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,786 |
```javascript
// `flowgen --no-inexact --interface-records node_modules/expo-sqlite/build/SQLite.types.d.ts`
// from expo-sqlite 10.0.3
// with s/export type/declare export type/g, and as noted with "Zulip fix" below
declare module 'expo-sqlite/build/SQLite.types' {
/**
* Flowtype definitions for SQLite.types
*... | /content/code_sandbox/flow-typed/expo-sqlite_vx.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,637 |
```javascript
/*
* Crudely @generated like so:
* $ ls static/translations/messages_*.json | LC_ALL=C sort | perl -lne '
print "\
declare module '\''../../$_'\'' {
declare export default {| [string]: string |};
}";
' >>flow-typed/translations.js
*/
declare module '../../static/translations/me... | /content/code_sandbox/flow-typed/translations.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,565 |
```javascript
// flow-typed signature: 350bbd47d9063ecee4c33220f3f6fa99
// flow-typed version: c6154227d1/base-64_v0.1.x/flow_>=v0.25.x <=v0.103.x
declare module 'base-64' {
declare module.exports: {|
version: string;
/**
* This function takes a byte string (the input parameter) and encodes it according... | /content/code_sandbox/flow-typed/base-64_v0.1.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 337 |
```javascript
declare module 'react-native-url-polyfill/js/URL' {
import type { URLSearchParams } from 'react-native-url-polyfill/js/URLSearchParams';
// path_to_url#L3765-L3783
declare export class URL {
static createObjectURL(blob: Blob): string;
static createObjectURL(mediaSource: MediaSource): string... | /content/code_sandbox/flow-typed/react-native-url-polyfill_vx.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 549 |
```javascript
// flow-typed signature: c0e67f98b12ddf0a53470f9c3628dce6
// flow-typed version: 89b0d35e3a/reselect_v3.x.x/flow_>=v0.47.x <=v0.103.x
type ExtractReturnType = <Return>((...rest: any[]) => Return) => Return;
declare module "reselect" {
declare type InputSelector<-TState, TProps, TResult> =
(state: ... | /content/code_sandbox/flow-typed/reselect_v3.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 8,027 |
```javascript
declare module 'redux-mock-store' {
/*
S = State
A = Action
*/
declare type mockStore = { <S, A>(state: S): mockStoreWithoutMiddleware<S, A>, ... };
declare interface Dispatch<S, A> {
(action: A): A;
<T>(mixed): T; // TODO(#5006): fix type
// <T>((Function, Function) => T): T ... | /content/code_sandbox/flow-typed/redux-mock-store_v1.2.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 284 |
```javascript
// Definitions we want Flow to assume.
//
// For docs on the format, see:
// path_to_url
declare var __TEST__: true | void;
``` | /content/code_sandbox/flow-typed/globals.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 34 |
```javascript
// Assembled with help from Flowgen v1.10.0.
//
// The modules 'expo-apple-authentication/build/AppleAuthentication',
// 'expo-apple-authentication/build/AppleAuthenticationButton', and
// 'expo-apple-authentication/build/AppleAuthentication.types' are the
// result of passing those files in node_modules ... | /content/code_sandbox/flow-typed/expo-apple-authentication_vx.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 2,667 |
```javascript
// flow-typed signature: dfa621fc2221dbcc5c75aa37a073b542
// flow-typed version: <<STUB>>/react-native-simple-toast_v0.1.1/flow_v0.92.0
/**
* Verbatim from index.d.ts.
*/
declare module 'react-native-simple-toast' {
declare type SimpleToast = {|
// Toast duration constants
SHORT: number,
... | /content/code_sandbox/flow-typed/react-native-simple-toast_vx.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 260 |
```javascript
// All definitions taken directly from:
// @react-native-async-storage/async-storage/lib/AsyncStorage.js
declare module '@react-native-async-storage/async-storage' {
declare type ReadOnlyArrayString = $ReadOnlyArray<string>;
declare export default {
getItem(
key: string,
callback?... | /content/code_sandbox/flow-typed/@react-native-async-storage/async-storage_v1.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 235 |
```javascript
// flow-typed signature: 2a3c1f56ec559e89dd447792f9debaf6
// flow-typed version: c6154227d1/deep-freeze_v0.0.1/flow_>=v0.25.x <=v0.103.x
declare module 'deep-freeze' {
declare module.exports: <T>(o: T) => T;
}
``` | /content/code_sandbox/flow-typed/npm/deep-freeze_v0.0.1.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 90 |
```javascript
// flow-typed signature: 4e6a5da3290fe9ea49e6bcdced64f358
// flow-typed version: c6154227d1/flow-bin_v0.x.x/flow_>=v0.25.x <=v0.103.x
declare module "flow-bin" {
declare module.exports: string;
}
``` | /content/code_sandbox/flow-typed/npm/flow-bin_v0.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 78 |
```diff
diff --git a/node_modules/react-native/jest/setup.js b/node_modules/react-native/jest/setup.js
index 5bc654475..e61bbf49c 100644
--- a/node_modules/react-native/jest/setup.js
+++ b/node_modules/react-native/jest/setup.js
@@ -15,22 +15,52 @@ const mockComponent = jest.requireActual('./mockComponent');
jest.requ... | /content/code_sandbox/patches/react-native+0.68.7.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 895 |
```unknown
// These are hand-written stubs, while we focus on other libraries
// that consume this one.
// @flow
import * as React from 'react';
export type PanGestureHandlerProps = $FlowFixMe;
export type PanGestureHandlerProperties = $FlowFixMe;
export type PanGestureHandlerGestureEvent = $FlowFixMe;
export class P... | /content/code_sandbox/types/react-native-gesture-handler.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 142 |
```javascript
// flow-typed signature: 8da1e134b3de1d6f6bf9ba1cc7e2dc7e
// flow-typed version: 387a235736/react-redux_v7.x.x/flow_>=v0.104.x
/**
The order of type arguments for connect() is as follows:
connect<Props, OwnProps, StateProps, DispatchProps, State, Dispatch>()
In Flow v0.89 only the first two are mandato... | /content/code_sandbox/flow-typed/npm/react-redux_v7.x.x.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 2,934 |
```unknown
/*
Types for the NPM package `sqlite3`.
Based on upstream API docs:
path_to_url
@flow strict-local
*/
/* eslint-disable */
// From `Statement::BindParameter` in the implementation.
// It actually also accepts arbitrary objects using ToString,
// but let's say that it doesn't.
export type QueryParameter... | /content/code_sandbox/types/sqlite3.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 591 |
```unknown
/**
* `react-intl`, translated from react-intl/react-intl.d.ts, with minimal
* tweaks to make it work.
*
* This used to refer to types from React's TypeScript libdef,
* @types/react. We've translated those places to use Flow instead,
* hopefully without errors or too much loss of information.
*
* @fl... | /content/code_sandbox/types/react-intl.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 8,559 |
```unknown
/* @flow
* @generated
*/
export * from './build/ScreenOrientation.js.flow';
``` | /content/code_sandbox/types/expo-screen-orientation/index.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 21 |
```unknown
/* @flow
* @generated by TsFlower
*/
// This module seems pretty useless, so we've erased everything in it. If
// that seems wrong, we can process it (or part of it) as usual.
``` | /content/code_sandbox/types/expo-screen-orientation/plugin/build/withScreenOrientation.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 49 |
```unknown
/* @flow
* @generated by TsFlower
*/
import { type Subscription as Subscription_ } from 'expo-modules-core';
import {
Orientation,
type OrientationT as OrientationT_,
type OrientationChangeEvent as OrientationChangeEvent_,
type OrientationChangeListener as OrientationChangeListener_,
Orientation... | /content/code_sandbox/types/expo-screen-orientation/build/ScreenOrientation.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 330 |
```unknown
/*
* Types translated from react-native-webview/lib/WebViewTypes.d.ts and
* lib/WebView.d.ts, with Flowgen v1.14.1.
*
* Done with `--interface-records` and `--no-inexact`, and edited lightly.
*
* @flow strict-local
*/
import type { SyntheticEvent, ScrollEvent } from 'react-native/Libraries/Types/Core... | /content/code_sandbox/types/react-native-webview.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 8,106 |
```unknown
/* @flow
* @generated by TsFlower
*/
import type { ProxyNativeModule as $tsflower_import_type$_$expo_2d_modules_2d_core$ProxyNativeModule } from 'expo-modules-core';
declare var _default: $tsflower_import_type$_$expo_2d_modules_2d_core$ProxyNativeModule;
export default _default;
``` | /content/code_sandbox/types/expo-screen-orientation/build/ExpoScreenOrientation.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 79 |
```unknown
// @flow
// Simple manual stubs, while we focus on other libraries.
export class Node<T> {}
export class Value<T> {}
export class View<T> {}
export default { Node, Value, View };
``` | /content/code_sandbox/types/react-native-reanimated/index.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 45 |
```unknown
/* @flow
* @generated by TsFlower
*/
declare export var Orientation: {|
/**
* An unknown screen orientation. For example, the device is flat, perhaps on a table.
*/
+UNKNOWN: 0,
/**
* Right-side up portrait interface orientation.
*/
+PORTRAIT_UP: 1,
/**
* Upside down portrait inte... | /content/code_sandbox/types/expo-screen-orientation/build/ScreenOrientation.types.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 951 |
```javascript
/* @flow strict-local */
import { type NavigationProp } from '@react-navigation/native';
/* eslint-disable no-unused-vars */
function test_setParams() {
type NavProp<P> = NavigationProp<{| r: P |}, 'r'>;
function test_happy(navigation: NavProp<{| a: number |}>) {
navigation.setParams({ a: 1 });... | /content/code_sandbox/types/__flow-tests__/@react-navigation/native-test.js | javascript | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 287 |
```unknown
/* @flow
* @generated
*/
export * from './build/index.js.flow';
``` | /content/code_sandbox/types/expo-modules-core/index.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 19 |
```unknown
/* @flow
* @generated by TsFlower
*/
/* tsflower-unimplemented: ModuleDeclaration */
/* declare module 'react-native/Libraries/EventEmitter/NativeEventEmitter' {
import { EventEmitter } from 'react-native';
interface NativeEventEmitter extends EventEmitter {
new (nativeModule: NativeModule): Nativ... | /content/code_sandbox/types/expo-modules-core/src/ts-declarations/NativeEventEmitter.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 125 |
```unknown
/* @flow
* @generated by TsFlower
*/
import type { NativeEventEmitter as $tsflower_subst$RN$NativeEventEmitter } from 'tsflower/subst/react-native';
import { NativeEventEmitter } from 'react-native';
type NativeModule = {
startObserving?: () => void,
stopObserving?: () => void,
addListener: (eventNa... | /content/code_sandbox/types/expo-modules-core/build/EventEmitter.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 220 |
```unknown
/* @flow
* @generated by TsFlower
*/
/* tsflower-unimplemented: ModuleDeclaration */
/* declare global {
var ExpoModules: undefined | {
[key: string]: any;
};
} */
declare export function requireNativeModule<ModuleType = any>(moduleName: string): ModuleType;
``` | /content/code_sandbox/types/expo-modules-core/build/requireNativeModule.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 66 |
```unknown
/**
* Types for the NPM package `@sentry/react-native`.
*
* @flow strict-local
*/
type Primitive =
| number
| string
| boolean
// | bigint (not supported yet; facebook/flow#6639)
| symbol
| null
| typeof undefined;
// Adapted from @sentry/types/src/options.ts et al.
//
// Despite being gi... | /content/code_sandbox/types/@sentry/react-native.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,831 |
```unknown
/* @flow
* @generated by TsFlower
*/
/* tsflower-unimplemented: EnumDeclaration */
/* export declare enum PermissionStatus {
GRANTED = "granted",
UNDETERMINED = "undetermined",
DENIED = "denied"
} */
export type PermissionExpiration = 'never' | number;
export interface PermissionResponse {
... | /content/code_sandbox/types/expo-modules-core/build/PermissionsInterface.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 100 |
```unknown
/* @flow
* @generated by TsFlower
*/
import * as React from 'react';
declare export function requireNativeViewManager<P = any>(viewName: string): React.ComponentType<P>;
``` | /content/code_sandbox/types/expo-modules-core/build/NativeViewManagerAdapter.native.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 43 |
```unknown
/* @flow
* @generated by TsFlower
*/
import { type ProxyNativeModule } from './NativeModulesProxy.types';
declare var _default: { [moduleName: string]: ProxyNativeModule, ... };
export default _default;
``` | /content/code_sandbox/types/expo-modules-core/build/NativeModulesProxy.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 50 |
```unknown
/* @flow
* @generated by TsFlower
*/
import * as React from 'react';
declare export function requireNativeViewManager<P = any>(viewName: string): React.ComponentType<P>;
``` | /content/code_sandbox/types/expo-modules-core/build/NativeViewManagerAdapter.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 43 |
```unknown
/* @flow
* @generated by TsFlower
*/
// TODO[tsflower]: From @types/react-native; add to subst/react-native.
type PlatformOSType = 'ios' | 'android' | 'macos' | 'windows' | 'web' | 'native';
export type PlatformSelectOSType = PlatformOSType | 'native' | 'electron' | 'default';
export type PlatformSelect ... | /content/code_sandbox/types/expo-modules-core/build/Platform.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 201 |
```unknown
/* @flow
* @generated by TsFlower
*/
declare export default function deprecate(
library: string,
deprecatedAPI: string,
options?: {
replacement?: string,
currentVersion?: string,
versionToRemove?: string,
...
},
): void;
``` | /content/code_sandbox/types/expo-modules-core/build/deprecate.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 61 |
```unknown
/* @flow
* @generated by TsFlower
*/
import { type PermissionResponse } from './PermissionsInterface';
type RequestPermissionMethod<Permission: PermissionResponse> = () => Promise<Permission>;
type GetPermissionMethod<Permission: PermissionResponse> = () => Promise<Permission>;
declare interface Permissio... | /content/code_sandbox/types/expo-modules-core/build/PermissionsHook.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 204 |
```unknown
/* @flow
* @generated by TsFlower
*/
/* $FlowFixMe[missing-export]: Real RN doesn't have a type with this name.
It does exist in @types/react-native, but it's marked as deprecated.
Could send a PR to TsFlower, or wait for Expo to stop using this. */
import type { DeviceEventEmitterStatic as $tsflower... | /content/code_sandbox/types/expo-modules-core/build/index.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 377 |
```unknown
/* @flow
* @generated by TsFlower
*/
export { default } from 'react-native/Libraries/EventEmitter/RCTDeviceEventEmitter';
``` | /content/code_sandbox/types/expo-modules-core/build/SyntheticPlatformEmitter.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 33 |
```unknown
/* @flow
* @generated by TsFlower
*/
export type ProxyNativeModule = {
[propertyName: string]: any,
addListener: (eventName: string) => void,
removeListeners: (count: number) => void,
...
};
``` | /content/code_sandbox/types/expo-modules-core/build/NativeModulesProxy.types.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 56 |
```unknown
/* @flow
* @generated by TsFlower
*/
export {};
``` | /content/code_sandbox/types/expo-modules-core/build/sweet/setUpErrorManager.fx.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 16 |
```unknown
/* @flow
* @generated by TsFlower
*/
import { type ProxyNativeModule } from './NativeModulesProxy.types';
declare var NativeModulesProxy: { [moduleName: string]: ProxyNativeModule, ... };
export default NativeModulesProxy;
``` | /content/code_sandbox/types/expo-modules-core/build/NativeModulesProxy.native.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 52 |
```unknown
/* @flow
* @generated by TsFlower
*/
declare export class CodedError extends Error {
code: string;
info?: any;
constructor(code: string, message: string): any;
}
``` | /content/code_sandbox/types/expo-modules-core/build/errors/CodedError.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 46 |
```unknown
/* @flow
* @generated by TsFlower
*/
import type { ProxyNativeModule as $tsflower_import_type$_$_2e__2e_$ProxyNativeModule } from '..';
declare var _default: $tsflower_import_type$_$_2e__2e_$ProxyNativeModule;
export default _default;
``` | /content/code_sandbox/types/expo-modules-core/build/sweet/NativeErrorManager.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 68 |
```unknown
/* @flow
* @generated by TsFlower
*/
import { CodedError } from './CodedError';
declare export class UnavailabilityError extends CodedError {
constructor(moduleName: string, propertyName: string): any;
}
``` | /content/code_sandbox/types/expo-modules-core/build/errors/UnavailabilityError.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 51 |
```unknown
/* @flow
* @generated by TsFlower
*/
declare export var isDOMAvailable: $FlowFixMe /* false */ /* tsflower-error: const type inferred from FalseKeyword */;
declare export var canUseEventListeners: $FlowFixMe /* false */ /* tsflower-error: const type inferred from FalseKeyword */;
declare export var canUs... | /content/code_sandbox/types/expo-modules-core/build/environment/browser.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 106 |
```unknown
/* @flow
* @generated
*/
export * from './lib/typescript/index.js.flow';
``` | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/index.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 21 |
```unknown
/* @flow
* @generated by TsFlower
*/
class NotificationSetting {
static open: () => void;
}
export default NotificationSetting;
``` | /content/code_sandbox/types/react-native-open-notification/index.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 32 |
```unknown
/* @flow
* @generated by TsFlower
*/
declare var _default: any;
export default _default;
``` | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/cameraRollPermissionNativeInterface.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 26 |
```unknown
/* @flow
* @generated by TsFlower
*/
export * from './useCameraRoll';
export * from './CameraRoll';
export * from './CameraRollIOSPermission';
``` | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/index.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 38 |
```unknown
/* @flow
* @generated by TsFlower
*/
import {
type GetPhotosParams,
type PhotoIdentifiersPage,
type SaveToCameraRollOptions,
} from './CameraRoll';
type UseCameraRollResult = [
PhotoIdentifiersPage,
(config?: GetPhotosParams) => Promise<void>,
(tag: string, options?: SaveToCameraRollOptions) =... | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/useCameraRoll.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 101 |
```unknown
/* @flow
* @generated by TsFlower
*/
declare var _default: any;
export default _default;
``` | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/nativeInterface.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 26 |
```unknown
/* @flow
* @generated by TsFlower
*/
export type GroupTypes =
| 'Album'
| 'All'
| 'Event'
| 'Faces'
| 'Library'
| 'PhotoStream'
| 'SavedPhotos';
export type Include =
| 'filename'
| 'fileSize'
| 'fileExtension'
| 'location'
| 'imageSize'
| 'playableDuration'
| 'orientation';
exp... | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/CameraRoll.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 662 |
```unknown
/* @flow
* @generated by TsFlower
*/
``` | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/__mocks__/nativeInterface.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 14 |
```unknown
/* @flow
* @generated by TsFlower
*/
import type { NativeEventEmitter as $tsflower_subst$RN$NativeEventEmitter } from 'tsflower/subst/react-native';
import { NativeEventEmitter } from 'react-native';
export type AccessLevel = 'addOnly' | 'readWrite';
export type CameraRollAuthorizationStatus =
| 'granted... | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/CameraRollIOSPermission.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 204 |
```unknown
/* @flow
* @generated by TsFlower
*/
export {};
``` | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/__tests__/CameraRollTest.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 16 |
```unknown
/* @flow
* @generated by TsFlower
*/
export {};
``` | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/__tests__/CameraRollIOSPermissionTest.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 16 |
```unknown
/* @flow
* @generated by TsFlower
*/
export {};
``` | /content/code_sandbox/types/@react-native-camera-roll/camera-roll/lib/typescript/__tests__/useCameraRoll.js.flow | unknown | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 16 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Chris Bobbe <cbobbe@zulip.com>
Date: Mon, 25 Jul 2022 14:37:40 -0700
Subject: [tsflower] expo-modules-core: Fix React import, to use
React.ComponentType
---
types/expo-modules-core/build/NativeViewManagerAdapter.js.flow | 2 +-
...... | /content/code_sandbox/types/patches/0035-tsflower-expo-modules-core-Fix-React-import-to-use-R.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 431 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Wed, 25 May 2022 16:31:50 -0700
Subject: [???] rnav: Fix odd initialRouteName "index signature" error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This sac... | /content/code_sandbox/types/patches/0025-rnav-Fix-odd-initialRouteName-index-signature-error.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 513 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Chris Bobbe <cbobbe@zulip.com>
Date: Fri, 1 Sep 2023 18:05:02 -0700
Subject: [tsflower] rnsac: Use $ReadOnlyArray
---
.../lib/typescript/src/SafeArea.types.js.flow | 4 +---
1 file changed, 1 insertion(+), 3 deletions... | /content/code_sandbox/types/patches/0002-tsflower-rnsac-Use-ReadOnlyArray.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 338 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Chris Bobbe <cbobbe@zulip.com>
Date: Fri, 1 Sep 2023 18:29:58 -0700
Subject: [tsflower] rnsac: Translate a TS `Record` type
---
.../lib/typescript/src/SafeArea.types.js.flow | 3 +--
1 file changed, 1 insertion(+), 2... | /content/code_sandbox/types/patches/0003-tsflower-rnsac-Translate-a-TS-Record-type.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 344 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Tue, 24 May 2022 18:48:07 -0700
Subject: [upstream] rnav: Fix type-parameter defaults that don't meet bounds
In the type aliases NavigationProp, StackNavigationProp,
NavigationHelpers, and Descriptor.... | /content/code_sandbox/types/patches/0006-upstream-rnav-Fix-type-parameter-defaults-that-don-t.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 894 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Chris Bobbe <cbobbe@zulip.com>
Date: Mon, 25 Jul 2022 13:38:39 -0700
Subject: [tsflower] expo-web-browser: Fix export { ... } of types
---
.../expo-web-browser/build/WebBrowser.js.flow | 45 +++++++++++++------
1 file changed, 31 ins... | /content/code_sandbox/types/patches/0042-tsflower-expo-web-browser-Fix-export-.-of-types.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 939 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Tue, 7 Jun 2022 20:57:09 -0700
Subject: [tsflower] Replace interface-extends with spread for non-interface
bases
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8b... | /content/code_sandbox/types/patches/0027-tsflower-Replace-interface-extends-with-spread-for-n.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,593 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Wed, 8 Jun 2022 10:44:44 -0700
Subject: [adhoc] rnav: Manually implement conditionals in function param lists
In Flow, this conditional is completely unnecessary: if a function
accepts void/undefined ... | /content/code_sandbox/types/patches/0026-adhoc-rnav-Manually-implement-conditionals-in-functi.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 533 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Tue, 24 May 2022 22:46:07 -0700
Subject: [upstream] rnav: Covariant indexer in ParamListBase
---
.../@react-navigation/routers/lib/typescript/src/types.js.flow | 2 +-
1 file changed, 1 insertion(+)... | /content/code_sandbox/types/patches/0009-upstream-rnav-Covariant-indexer-in-ParamListBase.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 302 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Tue, 24 May 2022 18:30:49 -0700
Subject: [irreducible] rnav: Make action types exact
Otherwise they're not subtypes of the base action type,
which specifies types on some optional properties.
Classif... | /content/code_sandbox/types/patches/0013-irreducible-rnav-Make-action-types-exact.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 590 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Fri, 27 May 2022 15:26:23 -0700
Subject: [tsflower] Substitute for React.ReactText
---
.../core/lib/typescript/src/checkSerializable.js.flow | 4 ++--
1 file changed, 2 insertions(+), 2 delet... | /content/code_sandbox/types/patches/0022-tsflower-Substitute-for-React.ReactText.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 331 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Tue, 24 May 2022 22:12:21 -0700
Subject: [irreducible] rnav: EventMap types exact and covariant
Otherwise these FooEventMap types aren't actually subtypes of
EventMapBase. Without exactness, their va... | /content/code_sandbox/types/patches/0015-irreducible-rnav-EventMap-types-exact-and-covariant.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 1,654 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Wed, 25 May 2022 17:31:01 -0700
Subject: [upstream] rnav: $ReadOnlyArray on NavigationState properties
I believe this could be expressed upstream, with `readonly Foo[]`.
---
.../routers/lib/typescrip... | /content/code_sandbox/types/patches/0004-upstream-rnav-ReadOnlyArray-on-NavigationState-prope.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 373 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Tue, 7 Jun 2022 21:19:03 -0700
Subject: [tsflower] Fix a `typeof` to `type` in TurboModule imports
---
.../lib/typescript/platforms/NativeImagePicker.js.flow | 2 +-
1 file changed, 1 insert... | /content/code_sandbox/types/patches/0031-tsflower-Fix-a-typeof-to-type-in-TurboModule-imports.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 306 |
```diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Greg Price <greg@zulip.com>
Date: Wed, 8 Jun 2022 14:40:53 -0700
Subject: [upstream?] rnav: Can initialParams really be partial?
If true, that'd mean that a screen could never actually count on
getting the route params its type says i... | /content/code_sandbox/types/patches/0029-upstream-rnav-Can-initialParams-really-be-partial.patch | diff | 2016-05-08T05:41:48 | 2024-08-15T07:25:47 | zulip-mobile | zulip/zulip-mobile | 1,274 | 342 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.