Socket
Socket
Sign inDemoInstall

@types/react-native

Package Overview
Dependencies
Maintainers
1
Versions
672
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-native - npm Package Compare versions

Comparing version 0.69.21 to 0.69.22

4

react-native v0.69/BatchedBridge.d.ts

@@ -16,3 +16,3 @@ interface SpyData {

declare module 'react-native/Libraries/BatchedBridge/BatchedBridge' {
declare module "react-native/Libraries/BatchedBridge/BatchedBridge" {
const BatchedBridge: MessageQueue;

@@ -22,4 +22,4 @@ export default BatchedBridge;

declare module 'react-native/Libraries/BatchedBridge/MessageQueue' {
declare module "react-native/Libraries/BatchedBridge/MessageQueue" {
export default MessageQueue;
}

@@ -1,2 +0,2 @@

declare module 'react-native/Libraries/Utilities/codegenNativeCommands' {
declare module "react-native/Libraries/Utilities/codegenNativeCommands" {
export interface Options<T extends string> {

@@ -11,4 +11,4 @@ readonly supportedCommands: ReadonlyArray<T>;

declare module 'react-native/Libraries/Utilities/codegenNativeComponent' {
import type { HostComponent } from 'react-native';
declare module "react-native/Libraries/Utilities/codegenNativeComponent" {
import type { HostComponent } from "react-native";

@@ -19,3 +19,3 @@ export interface Options {

readonly paperComponentNameDeprecated?: string;
readonly excludedPlatforms?: ReadonlyArray<'iOS' | 'android'>;
readonly excludedPlatforms?: ReadonlyArray<"iOS" | "android">;
}

@@ -33,4 +33,4 @@

declare module 'react-native/Libraries/Types/CodegenTypes' {
import type { NativeSyntheticEvent } from 'react-native';
declare module "react-native/Libraries/Types/CodegenTypes" {
import type { NativeSyntheticEvent } from "react-native";

@@ -37,0 +37,0 @@ // Event types

@@ -1,2 +0,2 @@

declare module 'react-native/Libraries/Core/Devtools/parseErrorStack' {
declare module "react-native/Libraries/Core/Devtools/parseErrorStack" {
export type StackFrame = {

@@ -16,6 +16,6 @@ file: string;

declare module 'react-native/Libraries/Core/Devtools/symbolicateStackTrace' {
import { StackFrame } from 'react-native/Libraries/Core/Devtools/parseErrorStack';
declare module "react-native/Libraries/Core/Devtools/symbolicateStackTrace" {
import { StackFrame } from "react-native/Libraries/Core/Devtools/parseErrorStack";
export default function symbolicateStackTrace(stack: ReadonlyArray<StackFrame>): Promise<StackFrame[]>;
}

@@ -60,3 +60,3 @@ /*

prototype: Blob;
new (blobParts?: Array<Blob | string>, options?: BlobOptions): Blob;
new(blobParts?: Array<Blob | string>, options?: BlobOptions): Blob;
};

@@ -68,11 +68,11 @@

| {
string: string;
headers: { [name: string]: string };
}
string: string;
headers: { [name: string]: string };
}
| {
uri: string;
headers: { [name: string]: string };
name?: string;
type?: string;
};
uri: string;
headers: { [name: string]: string };
name?: string;
type?: string;
};

@@ -105,3 +105,3 @@ declare class FormData {

prototype: Headers;
new (init?: HeadersInit_): Headers;
new(init?: HeadersInit_): Headers;
};

@@ -162,3 +162,3 @@

prototype: Request;
new (input: Request | string, init?: RequestInit): Request;
new(input: Request | string, init?: RequestInit): Request;
};

@@ -187,3 +187,3 @@

prototype: Response;
new (body?: BodyInit_, init?: ResponseInit): Response;
new(body?: BodyInit_, init?: ResponseInit): Response;
error: () => Response;

@@ -194,5 +194,5 @@ redirect: (url: string, status?: number) => Response;

type HeadersInit_ = Headers | string[][] | { [key: string]: string };
type RequestCredentials_ = 'omit' | 'same-origin' | 'include';
type RequestMode_ = 'navigate' | 'same-origin' | 'no-cors' | 'cors';
type ResponseType_ = 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect';
type RequestCredentials_ = "omit" | "same-origin" | "include";
type RequestMode_ = "navigate" | "same-origin" | "no-cors" | "cors";
type ResponseType_ = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";

@@ -255,3 +255,3 @@ //

prototype: XMLHttpRequest;
new (): XMLHttpRequest;
new(): XMLHttpRequest;
readonly DONE: 4;

@@ -309,6 +309,6 @@ readonly HEADERS_RECEIVED: 2;

prototype: XMLHttpRequestUpload;
new (): XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
declare type XMLHttpRequestResponseType = '' | 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
declare type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";

@@ -375,11 +375,12 @@ /**

type WebsocketMessageEventListener = (event: 'message', handler: (e: WebSocketMessageEvent) => void) => void;
type WebsocketErrorEventListener = (event: 'error', handler: (e: WebSocketErrorEvent) => void) => void;
type WebsocketOpenEventListener = (event: 'open', handler: () => void) => void;
type WebsocketCloseEventListener = (event: 'close', handler: (e: WebSocketCloseEvent) => void) => void;
type WebsocketMessageEventListener = (event: "message", handler: (e: WebSocketMessageEvent) => void) => void;
type WebsocketErrorEventListener = (event: "error", handler: (e: WebSocketErrorEvent) => void) => void;
type WebsocketOpenEventListener = (event: "open", handler: () => void) => void;
type WebsocketCloseEventListener = (event: "close", handler: (e: WebSocketCloseEvent) => void) => void;
type WebsocketEventListener = WebsocketMessageEventListener &
WebsocketErrorEventListener &
WebsocketOpenEventListener &
WebsocketCloseEventListener;
type WebsocketEventListener =
& WebsocketMessageEventListener
& WebsocketErrorEventListener
& WebsocketOpenEventListener
& WebsocketCloseEventListener;

@@ -400,3 +401,3 @@ interface WebSocket extends EventTarget {

prototype: WebSocket;
new (
new(
uri: string,

@@ -420,3 +421,3 @@ protocols?: string | string[] | null,

interface AbortEvent extends Event {
type: 'abort';
type: "abort";
}

@@ -437,3 +438,3 @@

addEventListener: (
type: 'abort',
type: "abort",
listener: (this: AbortSignal, event: any) => any,

@@ -443,10 +444,10 @@ options?:

| {
capture?: boolean;
once?: boolean;
passive?: boolean;
},
capture?: boolean;
once?: boolean;
passive?: boolean;
},
) => void;
removeEventListener: (
type: 'abort',
type: "abort",
listener: (this: AbortSignal, event: any) => any,

@@ -456,4 +457,4 @@ options?:

| {
capture?: boolean;
},
capture?: boolean;
},
) => void;

@@ -520,3 +521,3 @@ }

prototype: FileReader;
new (): FileReader;
new(): FileReader;
readonly DONE: 2;

@@ -523,0 +524,0 @@ readonly EMPTY: 0;

// Adds the JSX elements used in the launch screen.
declare module 'react-native/Libraries/NewAppScreen' {
declare module "react-native/Libraries/NewAppScreen" {
export const Header: any;

@@ -5,0 +5,0 @@ export const LearnMoreLinks: any;

import {
TextProps,
TextPropsIOS,
TextPropsAndroid,
AccessibilityProps,
AccessibilityPropsAndroid,
AccessibilityPropsIOS,
AccessibilityPropsAndroid,
TextInputProps,
TextInputIOSProps,
TextInputAndroidProps,
ViewProps,
ViewPropsIOS,
ViewPropsAndroid,
ViewPagerAndroidProps,
ScrollViewProps,
ScrollViewPropsIOS,
ScrollViewPropsAndroid,
InputAccessoryViewProps,
NavigatorIOSProps,
ActivityIndicatorIOSProps,
ActivityIndicatorProps,
ActivityIndicatorIOSProps,
ButtonProps,
DatePickerIOSProps,
DrawerLayoutAndroidProps,
FlatListProps,
ImageBackgroundProps,
ImageProps,
ImagePropsAndroid,
ImagePropsIOS,
ImageSourcePropType,
InputAccessoryViewProps,
ListViewProps,
MaskedViewIOSProps,
ModalProps,
NavigatorIOSProps,
ProgressBarAndroidProps,
ProgressViewIOSProps,
RecyclerViewBackedScrollViewProps,
RefreshControlProps,
RefreshControlPropsAndroid,
RefreshControlPropsIOS,
RefreshControlPropsAndroid,
RecyclerViewBackedScrollViewProps,
ScrollViewProps,
ScrollViewPropsAndroid,
ScrollViewPropsIOS,
SectionListProps,
SliderProps,
SliderPropsAndroid,
SliderPropsIOS,
SliderPropsAndroid,
SwitchIOSProps,
ImageSourcePropType,
ImageProps,
ImagePropsIOS,
ImagePropsAndroid,
ImageBackgroundProps,
FlatListProps,
VirtualizedListProps,
SectionListProps,
ListViewProps,
MaskedViewIOSProps,
ModalProps,
TouchableWithoutFeedbackProps,
TouchableHighlightProps,
TouchableOpacityProps,
TouchableNativeFeedbackProps,
TabBarIOSItemProps,
TabBarIOSProps,
SnapshotViewIOSProps,
ButtonProps,
StatusBarProps,
StatusBarPropsAndroid,
StatusBarPropsIOS,
StatusBarPropsAndroid,
SwitchIOSProps,
SwitchProps,
SwitchPropsIOS,
} from 'react-native';
TabBarIOSItemProps,
TabBarIOSProps,
TextInputAndroidProps,
TextInputIOSProps,
TextInputProps,
TextProps,
TextPropsAndroid,
TextPropsIOS,
TouchableHighlightProps,
TouchableNativeFeedbackProps,
TouchableOpacityProps,
TouchableWithoutFeedbackProps,
ViewPagerAndroidProps,
ViewProps,
ViewPropsAndroid,
ViewPropsIOS,
VirtualizedListProps,
} from "react-native";
declare module 'react-native' {
declare module "react-native" {
/*

@@ -62,0 +62,0 @@ * Previously, props interfaces where named *Properties

{
"name": "@types/react-native",
"version": "0.69.21",
"version": "0.69.22",
"description": "TypeScript definitions for react-native",

@@ -230,4 +230,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native",

},
"typesPublisherContentHash": "eca01f4b6bdf6144c427249425a1c1cb41f9ab2db33211733af94fff46624034",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "c0a5572a25689d150119dfcea3853e50ffdb4bcbc3f13ee1714b6357e7429bda",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 25 May 2023 20:34:40 GMT
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: `AbortController`, `AbortSignal`, `Blob`, `FileReader`, `FormData`, `Headers`, `MessageQueue`, `Request`, `Response`, `URL`, `URLSearchParams`, `WebSocket`, `XMLHttpRequest`, `XMLHttpRequestUpload`, `cancelAnimationFrame`, `clearImmediate`, `clearInterval`, `clearTimeout`, `fetch`, `fetchBundle`, `requestAnimationFrame`, `setImmediate`, `setInterval`, `setTimeout`

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc