@types/react-native
Advanced tools
Comparing version 0.71.11 to 0.71.12
@@ -421,3 +421,3 @@ import type * as React from "react"; | ||
export function sequence( | ||
animations: Array<CompositeAnimation>, | ||
animations: CompositeAnimation[], | ||
): CompositeAnimation; | ||
@@ -432,3 +432,3 @@ | ||
time: number, | ||
animations: Array<CompositeAnimation>, | ||
animations: CompositeAnimation[], | ||
): CompositeAnimation; | ||
@@ -467,3 +467,3 @@ | ||
export function parallel( | ||
animations: Array<CompositeAnimation>, | ||
animations: CompositeAnimation[], | ||
config?: ParallelConfig, | ||
@@ -470,0 +470,0 @@ ): CompositeAnimation; |
@@ -16,3 +16,3 @@ import { NativeSyntheticEvent } from "../../Types/CoreEventTypes"; | ||
*/ | ||
accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined; | ||
accessibilityActions?: readonly AccessibilityActionInfo[] | undefined; | ||
@@ -19,0 +19,0 @@ /** |
@@ -75,3 +75,3 @@ import type * as React from "react"; | ||
*/ | ||
data: ReadonlyArray<ItemT> | null | undefined; | ||
data: readonly ItemT[] | null | undefined; | ||
@@ -99,3 +99,3 @@ /** | ||
| (( | ||
data: Array<ItemT> | null | undefined, | ||
data: ItemT[] | null | undefined, | ||
index: number, | ||
@@ -162,4 +162,4 @@ ) => { length: number; offset: number; index: number }) | ||
| ((info: { | ||
viewableItems: Array<ViewToken>; | ||
changed: Array<ViewToken>; | ||
viewableItems: ViewToken[]; | ||
changed: ViewToken[]; | ||
}) => void) | ||
@@ -166,0 +166,0 @@ | null |
@@ -17,3 +17,3 @@ import type * as React from "react"; | ||
export interface SectionBase<ItemT, SectionT = DefaultSectionT> { | ||
data: ReadonlyArray<ItemT>; | ||
data: readonly ItemT[]; | ||
@@ -121,3 +121,3 @@ key?: string | undefined; | ||
| (( | ||
data: SectionListData<ItemT, SectionT>[] | null, | ||
data: Array<SectionListData<ItemT, SectionT>> | null, | ||
index: number, | ||
@@ -124,0 +124,0 @@ ) => { length: number; offset: number; index: number }) |
@@ -48,4 +48,4 @@ import type * as React from "react"; | ||
| ((info: { | ||
viewableItems: Array<ViewToken>; | ||
changed: Array<ViewToken>; | ||
viewableItems: ViewToken[]; | ||
changed: ViewToken[]; | ||
}) => void) | ||
@@ -273,4 +273,4 @@ | null; | ||
| ((info: { | ||
viewableItems: Array<ViewToken>; | ||
changed: Array<ViewToken>; | ||
viewableItems: ViewToken[]; | ||
changed: ViewToken[]; | ||
}) => void) | ||
@@ -277,0 +277,0 @@ | null |
@@ -5,3 +5,3 @@ export interface LogBoxStatic { | ||
*/ | ||
ignoreLogs(patterns: (string | RegExp)[]): void; | ||
ignoreLogs(patterns: Array<string | RegExp>): void; | ||
@@ -8,0 +8,0 @@ /** |
@@ -101,3 +101,3 @@ export interface Rationale { | ||
requestMultiple( | ||
permissions: Array<Permission>, | ||
permissions: Permission[], | ||
): Promise<{ [key in Permission]: PermissionStatus }>; | ||
@@ -104,0 +104,0 @@ } |
@@ -143,3 +143,3 @@ import type * as React from "react"; | ||
commandID: number | string, | ||
commandArgs?: Array<any>, | ||
commandArgs?: any[], | ||
) => void; | ||
@@ -146,0 +146,0 @@ } |
export interface SettingsStatic { | ||
get(key: string): any; | ||
set(settings: Object): void; | ||
watchKeys(keys: string | Array<string>, callback: () => void): number; | ||
watchKeys(keys: string | string[], callback: () => void): number; | ||
clearWatch(watchId: number): void; | ||
@@ -6,0 +6,0 @@ } |
@@ -15,3 +15,3 @@ import { ColorValue } from "../StyleSheet/StyleSheet"; | ||
dialogTitle?: string | undefined; | ||
excludedActivityTypes?: Array<string> | undefined; | ||
excludedActivityTypes?: string[] | undefined; | ||
tintColor?: ColorValue | undefined; | ||
@@ -18,0 +18,0 @@ subject?: string | undefined; |
@@ -9,3 +9,3 @@ import { ImageStyle, TextStyle, ViewStyle } from "./StyleSheetTypes"; | ||
type Falsy = undefined | null | false; | ||
interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> {} | ||
interface RecursiveArray<T> extends Array<T | readonly T[] | RecursiveArray<T>> {} | ||
/** Keep a brand of 'T' so that calls to `StyleSheet.flatten` can take `RegisteredStyle<T>` and return `T`. */ | ||
@@ -73,3 +73,3 @@ type RegisteredStyle<T> = number & { __registeredStyleBrand: T }; | ||
style?: StyleProp<T>, | ||
): T extends (infer U)[] ? U : T; | ||
): T extends Array<infer U> ? U : T; | ||
@@ -76,0 +76,0 @@ /** |
@@ -159,4 +159,3 @@ import { ImageResizeMode } from "../Image/ImageResizeMode"; | ||
transform?: | ||
| ( | ||
| PerpectiveTransform | ||
| Array<| PerpectiveTransform | ||
| RotateTransform | ||
@@ -173,4 +172,3 @@ | RotateXTransform | ||
| SkewYTransform | ||
| MatrixTransform | ||
)[] | ||
| MatrixTransform> | ||
| undefined; | ||
@@ -180,3 +178,3 @@ /** | ||
*/ | ||
transformMatrix?: Array<number> | undefined; | ||
transformMatrix?: number[] | undefined; | ||
/** | ||
@@ -183,0 +181,0 @@ * @deprecated Use rotate in transform prop instead. |
declare module "react-native/Libraries/Utilities/codegenNativeCommands" { | ||
export interface Options<T extends string> { | ||
readonly supportedCommands: ReadonlyArray<T>; | ||
readonly supportedCommands: readonly T[]; | ||
} | ||
@@ -54,3 +54,3 @@ | ||
type DefaultTypes = number | boolean | string | ReadonlyArray<string>; | ||
type DefaultTypes = number | boolean | string | readonly string[]; | ||
// Default handling, ignore the unused value | ||
@@ -57,0 +57,0 @@ // we're only using it for type checking |
@@ -20,4 +20,4 @@ declare module "react-native/Libraries/Core/Devtools/parseErrorStack" { | ||
export default function symbolicateStackTrace( | ||
stack: ReadonlyArray<StackFrame>, | ||
stack: readonly StackFrame[], | ||
): Promise<StackFrame[]>; | ||
} |
@@ -90,4 +90,4 @@ /* | ||
append(name: string, value: any): void; | ||
getAll(): Array<FormDataValue>; | ||
getParts(): Array<FormDataPart>; | ||
getAll(): FormDataValue[]; | ||
getParts(): FormDataPart[]; | ||
} | ||
@@ -94,0 +94,0 @@ |
{ | ||
"name": "@types/react-native", | ||
"version": "0.71.11", | ||
"version": "0.71.12", | ||
"description": "TypeScript definitions for react-native", | ||
@@ -235,4 +235,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native", | ||
}, | ||
"typesPublisherContentHash": "42cafae73979db3e582829de1fb62aebec8867caeadb61c52c109103fc8efe08", | ||
"typesPublisherContentHash": "86c466a1159e7d52bd1b0171f4c7f595e18580cfdff6d04f8777c6243eceb063", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 07 Nov 2023 20:08:00 GMT | ||
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
365065
9346