Skip to content

Commit 1031171

Browse files
committed
updated codeparts
1 parent ab41e7c commit 1031171

16 files changed

+31
-34
lines changed

src/specs/NativeMapViewModule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import type { TurboModule, CodegenTypes } from 'react-native';
32
import { TurboModuleRegistry } from 'react-native';
43

src/specs/NativeRNMBXCameraModule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ type Stop =
2323
}
2424
| NativeCameraStop;
2525

26-
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-unused-vars
27-
type ObjectOr<T> = Object;
26+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
27+
type ObjectOr<_T> = Object;
2828

2929
export interface Spec extends TurboModule {
3030
updateCameraStop(viewRef: ViewRef, stop: ObjectOr<Stop>): Promise<void>;

src/specs/NativeRNMBXChangeLineOffsetsShapeAnimatorModule.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { TurboModule, CodegenTypes } from 'react-native';
22
import { TurboModuleRegistry } from 'react-native';
3+
// @ts-expect-error - @turf packages have type resolution issues with package.json exports
34
import { Position } from '@turf/helpers';
45

56
//import type { UnsafeMixed } from './codegenUtils';

src/specs/NativeRNMBXImageModule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import type { TurboModule, CodegenTypes } from 'react-native';
32
import { TurboModuleRegistry } from 'react-native';
43

src/specs/NativeRNMBXPointAnnotationModule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import type { TurboModule, CodegenTypes } from 'react-native';
32
import { TurboModuleRegistry } from 'react-native';
43

src/specs/NativeRNMBXShapeSourceModule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import type { TurboModule, CodegenTypes } from 'react-native';
32
import { TurboModuleRegistry } from 'react-native';
43

src/specs/NativeRNMBXTileStoreModule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { TurboModule, CodegenTypes } from 'react-native';
22
import { TurboModuleRegistry } from 'react-native';
33

4-
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-unused-vars
5-
type ObjectOr<T> = Object;
4+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5+
type ObjectOr<_T> = Object;
66

77
// eslint-disable-next-line @typescript-eslint/no-unused-vars
88
type StringOr<_T> = string;

src/specs/NativeRNMBXViewportModule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ type StateInfo =
1515
transition: string;
1616
};
1717

18-
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-unused-vars
19-
type ObjectOr<T> = Object;
18+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
19+
type ObjectOr<_T> = Object;
2020

2121
type StateReal = { kind: 'followPuck' } /* | { kind: 'overview' } */;
2222
type State = ObjectOr<StateReal>;

src/specs/RNMBXCircleLayerNativeComponent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ type CommonProps = {
1717

1818
aboveLayerID?: OptionalProp<string>;
1919
belowLayerID?: OptionalProp<string>;
20-
layerIndex?: OptionalProp<Int32>;
20+
layerIndex?: OptionalProp<CodegenTypes.Int32>;
2121

22-
maxZoomLevel?: OptionalProp<Double>;
23-
minZoomLevel?: OptionalProp<Double>;
22+
maxZoomLevel?: OptionalProp<CodegenTypes.Double>;
23+
minZoomLevel?: OptionalProp<CodegenTypes.Double>;
2424
sourceLayerID?: OptionalProp<string>;
2525
slot?: OptionalProp<Slot>;
2626
};

src/specs/RNMBXFillLayerNativeComponent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ type CommonProps = {
1717

1818
aboveLayerID?: OptionalProp<string>;
1919
belowLayerID?: OptionalProp<string>;
20-
layerIndex?: OptionalProp<Int32>;
20+
layerIndex?: OptionalProp<CodegenTypes.Int32>;
2121

22-
maxZoomLevel?: OptionalProp<Double>;
23-
minZoomLevel?: OptionalProp<Double>;
22+
maxZoomLevel?: OptionalProp<CodegenTypes.Double>;
23+
minZoomLevel?: OptionalProp<CodegenTypes.Double>;
2424
sourceLayerID?: OptionalProp<string>;
2525
slot?: OptionalProp<Slot>;
2626
};

0 commit comments

Comments
 (0)