This repository was archived by the owner on Sep 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -871,7 +871,7 @@ function stringLiteralTypeAnnotation(name: string): ts.TypeNode {
871
871
return ts . createLiteralTypeNode ( ts . createLiteral ( name ) ) ;
872
872
}
873
873
874
- // type Fragments<Refs extends string> = null | {[ref in Refs]: true}
874
+ // type Fragments<Refs extends string> = {[ref in Refs]: true}
875
875
const fragmentRefsType = ts . createTypeAliasDeclaration (
876
876
undefined ,
877
877
undefined ,
@@ -883,19 +883,16 @@ const fragmentRefsType = ts.createTypeAliasDeclaration(
883
883
undefined
884
884
)
885
885
] ,
886
- ts . createUnionTypeNode ( [
887
- ts . createNull ( ) ,
888
- ts . createMappedTypeNode (
889
- undefined ,
890
- ts . createTypeParameterDeclaration (
891
- "ref" ,
892
- ts . createTypeReferenceNode ( "Refs" , undefined ) ,
893
- undefined
894
- ) ,
895
- undefined ,
896
- ts . createLiteralTypeNode ( ts . createTrue ( ) )
897
- )
898
- ] )
886
+ ts . createMappedTypeNode (
887
+ undefined ,
888
+ ts . createTypeParameterDeclaration (
889
+ "ref" ,
890
+ ts . createTypeReferenceNode ( "Refs" , undefined ) ,
891
+ undefined
892
+ ) ,
893
+ undefined ,
894
+ ts . createLiteralTypeNode ( ts . createTrue ( ) )
895
+ )
899
896
) ;
900
897
901
898
// Should match FLOW_TRANSFORMS array
You can’t perform that action at this time.
0 commit comments