mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix: Cannot redeclare block-scoped variable 'console'.
This commit is contained in:
parent
351eeb6186
commit
8c1d21cf07
6
types/react-native/index.d.ts
vendored
6
types/react-native/index.d.ts
vendored
@ -9297,7 +9297,9 @@ export const PointPropType: React.Validator<PointPropType>;
|
||||
export const ViewPropTypes: React.ValidationMap<ViewProps>;
|
||||
|
||||
declare global {
|
||||
function require(name: string): any;
|
||||
type ReactNativeRequireFunction = (name: string) => any;
|
||||
|
||||
var require: ReactNativeRequireFunction;
|
||||
|
||||
/**
|
||||
* Console polyfill
|
||||
@ -9315,7 +9317,7 @@ declare global {
|
||||
ignoredYellowBox: string[];
|
||||
}
|
||||
|
||||
const console: Console;
|
||||
var console: Console;
|
||||
|
||||
/**
|
||||
* Navigator object for accessing location API
|
||||
|
||||
Loading…
Reference in New Issue
Block a user