-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Fix generated types base on __typetests__ #51317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D74246304 |
Summary: This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported - changing `overlayColor` type to `ColorValue` to align with manual types - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type. - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter` - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported. - removing `Animated.legacyRef` type test - not included in new types - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors. Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
This pull request was exported from Phabricator. Differential Revision: D74246304 |
Summary: This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments, - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` , - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported, - changing `overlayColor` type to `ColorValue` to align with manual types, - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type, - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter`, - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported, - removing `Animated.legacyRef` type test - not included in new types, - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors, - exporting `SectionListData` Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
This pull request was exported from Phabricator. Differential Revision: D74246304 |
Summary: This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments, - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` , - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported, - changing `overlayColor` type to `ColorValue` to align with manual types, - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type, - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter`, - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported, - removing `Animated.legacyRef` type test - not included in new types, - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors, - exporting `SectionListData` Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
This pull request was exported from Phabricator. Differential Revision: D74246304 |
Summary: This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments, - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` , - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported, - changing `overlayColor` type to `ColorValue` to align with manual types, - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type, - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter`, - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported, - removing `Animated.legacyRef` type test - not included in new types, - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors, - exporting `SectionListData` , - bumping `definitelytyped/dtslint` to 0.0.178 version which removes `testNoTsIgnore` check [here](microsoft/DefinitelyTyped-tools@0e0838a) Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
This pull request was exported from Phabricator. Differential Revision: D74246304 |
Summary: This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments, - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` , - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported, - changing `overlayColor` type to `ColorValue` to align with manual types, - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type, - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter`, - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported, - removing `Animated.legacyRef` type test - not included in new types, - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors, - exporting `SectionListData` , - bumping `definitelytyped/dtslint` to 0.0.178 version which removes `testNoTsIgnore` check [here](microsoft/DefinitelyTyped-tools@0e0838a) Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
This pull request was exported from Phabricator. Differential Revision: D74246304 |
Summary: Pull Request resolved: facebook#51317 This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments, - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` , - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported, - changing `overlayColor` type to `ColorValue` to align with manual types, - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type, - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter`, - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported, - removing `Animated.legacyRef` type test - not included in new types, - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors, - exporting `SectionListData` , - bumping `definitelytyped/dtslint` to 0.0.178 version which removes `testNoTsIgnore` check [here](microsoft/DefinitelyTyped-tools@0e0838a) Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
Summary: This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments, - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` , - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported, - changing `overlayColor` type to `ColorValue` to align with manual types, - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type, - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter`, - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported, - removing `Animated.legacyRef` type test - not included in new types, - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors, - exporting `SectionListData` , - bumping `definitelytyped/dtslint` to 0.0.178 version which removes `testNoTsIgnore` check [here](microsoft/DefinitelyTyped-tools@0e0838a) Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
This pull request was exported from Phabricator. Differential Revision: D74246304 |
Summary: This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments, - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` , - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported, - changing `overlayColor` type to `ColorValue` to align with manual types, - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type, - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter`, - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported, - removing `Animated.legacyRef` type test - not included in new types, - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors, - exporting `SectionListData` , - bumping `definitelytyped/dtslint` to 0.0.178 version which removes `testNoTsIgnore` check [here](microsoft/DefinitelyTyped-tools@0e0838a) Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
Summary: Pull Request resolved: facebook#51317 This diff is a set of alignments/improvements in generated TS types. It includes: - extending `AppStateStatus` with `extension` and `unknown`, - exporting `AnimatedProps` under Animated namespace, - resolving issue with discriminated unions in `ProgressBarAndroidTypes`, - fixing `StyleSheet.create` type to accept only specified style properties, - extending `TextProps` with `AccessibilityProps`, - extending Fn `Args` generic with `$ReadOnlyArray` in `ErrorUtils`, - small `__typetests__` adjustments, - removing type test `styleDimensionValueValidAnimated` as `DimensionValue` no longer accepts `AnimatedNode` , - removing `styleDimensionValueInvalid` as `DimensionValue` accepts any string now - template literal types in Flow are not supported, - changing `overlayColor` type to `ColorValue` to align with manual types, - fixing `AnimatedPropsAllowlist` type which wasn't correct in TS because index signature type was different from style type, - using `DeviceEventEmitter` instead of `DeviceEventEmitterStatic` in type tests which is equivalent in both new and old types - `DeviceEventEmitterStatic` was only a type of `DeviceEventEmitter`, - removing type test for checking forwarded key type - doesn't work with new types and that shouldn't be supported, - removing `Animated.legacyRef` type test - not included in new types, - adding `DOMRect` from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors, - exporting `SectionListData` , - bumping `definitelytyped/dtslint` to 0.0.178 version which removes `testNoTsIgnore` check [here](microsoft/DefinitelyTyped-tools@0e0838a) Changelog: [Internal] Reviewed By: huntie Differential Revision: D74246304
This pull request was exported from Phabricator. Differential Revision: D74246304 |
Summary:
This diff is a set of alignments/improvements in generated TS types. It includes:
AppStateStatus
withextension
andunknown
,AnimatedProps
under Animated namespace,ProgressBarAndroidTypes
,StyleSheet.create
type to accept only specified style properties,TextProps
withAccessibilityProps
,Args
generic with$ReadOnlyArray
inErrorUtils
,__typetests__
adjustments,styleDimensionValueValidAnimated
asDimensionValue
no longer acceptsAnimatedNode
,styleDimensionValueInvalid
asDimensionValue
accepts any string now - template literal types in Flow are not supported,overlayColor
type toColorValue
to align with manual types,AnimatedPropsAllowlist
type which wasn't correct in TS because index signature type was different from style type,DeviceEventEmitter
instead ofDeviceEventEmitterStatic
in type tests which is equivalent in both new and old types -DeviceEventEmitterStatic
was only a type ofDeviceEventEmitter
,Animated.legacyRef
type test - not included in new types,DOMRect
from "dom" lib to globals.d.ts to not include "dom" lib in the tsconfig - tries to compare globals with lib.dom.d.ts and produces many errors,SectionListData
,@definitelytyped/dtslint
to0.0.178
version which removestestNoTsIgnore
check hereChangelog:
[Internal]
Reviewed By: huntie
Differential Revision: D74246304