Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit227383e

Browse files
committed
Update dependencies and remove warnings
1 parent0181e6f commit227383e

File tree

5 files changed

+379
-330
lines changed

5 files changed

+379
-330
lines changed

‎2/parseFlow.re‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ let typeAnnotationToTyped = (annotation: FlowAst.Type.annotation) => {
4545
flowTypeToTyped(t);
4646
};
4747

48-
letrecflowAstToTypedAst= ((loc:Loc.t, s))=>
48+
letflowAstToTypedAst= ((loc:Loc.t, s))=>
4949
switch (s) {
5050
|FlowAst.Statement.DeclareVariable({id, typeAnnotation})=>
5151
DotTyped.LetDeclaration({

‎bindings/typescript.re‎

Lines changed: 53 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,7 @@ module Internal = {
609609
};
610610
typenode= {. "kind":SyntaxKind.t};
611611
[@bs.module"typescript"]
612-
externalcreateSourceFile:
613-
(string,string,ScriptTarget.t,Js.boolean) =>node=
612+
externalcreateSourceFile: (string,string,ScriptTarget.t,bool) =>node=
614613
"";
615614
};
616615

@@ -619,18 +618,18 @@ type parseDiagnostic = {
619618
messageText:string,
620619
category:int,
621620
length:int,
622-
code:int
621+
code:int,
623622
};
624623

625624
typekeyword= {
626625
pos:int,
627-
end_:int
626+
end_:int,
628627
}
629628
andidentifier= {
630629
pos:int,
631630
end_:int,
632631
escapedText:string,
633-
text:string
632+
text:string,
634633
}
635634
and functionDeclaration = {
636635
pos: int,
@@ -639,39 +638,39 @@ and functionDeclaration = {
639638
name: node,
640639
typeParameters: array(node),
641640
parameters: array(node),
642-
type_: node
641+
type_: node,
643642
}
644643
and interfaceDeclaration= {
645644
pos: int,
646645
end_: int,
647646
modifiers: array(node),
648647
name: node,
649648
typeParameters: array(node),
650-
members: array(node)
649+
members: array(node),
651650
}
652651
and propertySignature= {
653652
pos: int,
654653
end_: int,
655654
modifiers: array(node),
656655
name: node,
657656
questionToken: option(node),
658-
type_: node
657+
type_: node,
659658
}
660659
and questionToken= {
661660
pos: int,
662-
end_: int
661+
end_: int,
663662
}
664663
and typeAliasDeclaration= {
665664
pos: int,
666665
end_: int,
667666
name: node,
668667
typeParameters: array(node),
669-
type_: node
668+
type_: node,
670669
}
671670
and typeLiteral= {
672671
pos: int,
673672
end_: int,
674-
members: array(node)
673+
members: array(node),
675674
}
676675
and sourceFile= {
677676
pos: int,
@@ -684,25 +683,25 @@ and sourceFile = {
684683
statements: array(node),
685684
nodeCount: int,
686685
identifierCount: int,
687-
parseDiagnostics: array(parseDiagnostic)
686+
parseDiagnostics: array(parseDiagnostic),
688687
}
689688
and parameter= {
690689
pos: int,
691690
end_: int,
692691
dotDotDotToken: option(node),
693692
name: node,
694693
questionToken: option(node),
695-
type_: node
694+
type_: node,
696695
}
697696
and typeParameter= {
698697
pos: int,
699698
end_: int,
700-
name: node
699+
name: node,
701700
}
702701
and typeReference= {
703702
pos: int,
704703
end_: int,
705-
typeName: node
704+
typeName: node,
706705
}
707706
and node=
708707
|DeclareKeyword(keyword)
@@ -729,7 +728,7 @@ module Decoder = {
729728
messageText: json|> field("messageText", string),
730729
category: json|> field("category", int),
731730
code: json|> field("code", int),
732-
length: json|> field("length", int)
731+
length: json|> field("length", int),
733732
};
734733
externalnodeToJson:Internal.node =>Js.Json.t="%identity";
735734
letrecdecoders=[
@@ -747,7 +746,7 @@ module Decoder = {
747746
(Internal.SyntaxKind.sourceFile, sourceFile),
748747
(Internal.SyntaxKind.parameter, parameter),
749748
(Internal.SyntaxKind.typeParameter, typeParameter),
750-
(Internal.SyntaxKind.typeReference, typeReference)
749+
(Internal.SyntaxKind.typeReference, typeReference),
751750
]
752751
andnode= json=> {
753752
letsyntaxKind= json|>Json.Decode.field("kind",Json.Decode.int);
@@ -761,82 +760,85 @@ module Decoder = {
761760
DeclareKeyword(
762761
Json.Decode.{
763762
pos: json|> field("pos", int),
764-
end_: json|> field("end", int)
765-
}
763+
end_: json|> field("end", int),
764+
},
766765
)
767766
andexportKeyword= json=>
768767
ExportKeyword(
769768
Json.Decode.{
770769
pos: json|> field("pos", int),
771-
end_: json|> field("end", int)
772-
}
770+
end_: json|> field("end", int),
771+
},
773772
)
774773
andnumberKeyword= json=>
775774
NumberKeyword(
776775
Json.Decode.{
777776
pos: json|> field("pos", int),
778-
end_: json|> field("end", int)
779-
}
777+
end_: json|> field("end", int),
778+
},
780779
)
781780
andstringKeyword= json=>
782781
StringKeyword(
783782
Json.Decode.{
784783
pos: json|> field("pos", int),
785-
end_: json|> field("end", int)
786-
}
784+
end_: json|> field("end", int),
785+
},
787786
)
788787
andidentifier= json=>
789788
Identifier(
790789
Json.Decode.{
791790
pos: json|> field("pos", int),
792791
end_: json|> field("end", int),
793792
escapedText: json|> field("escapedText", string),
794-
text: json|> field("text", string)
795-
}
793+
text: json|> field("text", string),
794+
},
796795
)
797796
andfunctionDeclaration= json=>
798797
FunctionDeclaration(
799798
Json.Decode.{
800799
pos: json|> field("pos", int),
801800
end_: json|> field("end", int),
802-
modifiers: json|> withDefault([||], field("modifiers", array(node))),
801+
modifiers:
802+
json|> withDefault([||], field("modifiers", array(node))),
803803
name: json|> field("name", node),
804804
typeParameters:
805805
json|> withDefault([||], field("typeParameters", array(node))),
806806
parameters: json|> field("parameters", array(node)),
807-
type_: json|> field("type", node)
808-
}
807+
type_: json|> field("type", node),
808+
},
809809
)
810810
andinterfaceDeclaration= json=>
811811
InterfaceDeclaration(
812812
Json.Decode.{
813813
pos: json|> field("pos", int),
814814
end_: json|> field("end", int),
815-
modifiers: json|> withDefault([||], field("modifiers", array(node))),
815+
modifiers:
816+
json|> withDefault([||], field("modifiers", array(node))),
816817
name: json|> field("name", node),
817818
members: json|> field("members", array(node)),
818819
typeParameters:
819-
json|> withDefault([||], field("typeParameters", array(node)))
820-
}
820+
json|> withDefault([||], field("typeParameters", array(node))),
821+
},
821822
)
822823
andpropertySignature= json=>
823824
PropertySignature(
824825
Json.Decode.{
825826
pos: json|> field("pos", int),
826827
end_: json|> field("end", int),
827-
modifiers: json|> withDefault([||], field("modifiers", array(node))),
828+
modifiers:
829+
json|> withDefault([||], field("modifiers", array(node))),
828830
name: json|> field("name", node),
829831
type_: json|> field("type", node),
830832
questionToken:
831-
json|>Json.Decode.optional(field("questionToken", node))
832-
}
833+
json|>Json.Decode.optional(field("questionToken", node)),
834+
},
833835
)
834836
andquestionToken= json=>
835837
QuestionToken(
836838
Json.Decode.{
837839
pos: json|> field("pos", int),
838-
end_: json|> field("end", int)
839-
}
840+
end_: json|> field("end", int),
841+
},
840842
)
841843
andtypeAliasDeclaration= json=>
842844
TypeAliasDeclaration(
@@ -846,16 +848,16 @@ module Decoder = {
846848
name: json|> field("name", node),
847849
type_: json|> field("type", node),
848850
typeParameters:
849-
json|> withDefault([||], field("typeParameters", array(node)))
850-
}
851+
json|> withDefault([||], field("typeParameters", array(node))),
852+
},
851853
)
852854
andtypeLiteral= json=>
853855
TypeLiteral(
854856
Json.Decode.{
855857
pos: json|> field("pos", int),
856858
end_: json|> field("end", int),
857-
members: json|> field("members", array(node))
858-
}
859+
members: json|> field("members", array(node)),
860+
},
859861
)
860862
andsourceFile= json=>
861863
SourceFile(
@@ -871,8 +873,8 @@ module Decoder = {
871873
nodeCount: json|> field("nodeCount", int),
872874
identifierCount: json|> field("identifierCount", int),
873875
parseDiagnostics:
874-
json|> field("parseDiagnostics", array(parseDiagnostic))
875-
}
876+
json|> field("parseDiagnostics", array(parseDiagnostic)),
877+
},
876878
)
877879
andparameter= json=>
878880
Parameter(
@@ -882,24 +884,24 @@ module Decoder = {
882884
dotDotDotToken:None,
883885
name: json|> field("name", node),
884886
questionToken:None,
885-
type_: json|> field("type", node)
886-
}
887+
type_: json|> field("type", node),
888+
},
887889
)
888890
andtypeParameter= json=>
889891
TypeParameter(
890892
Json.Decode.{
891893
pos: json|> field("pos", int),
892894
end_: json|> field("end", int),
893-
name: json|> field("name", node)
894-
}
895+
name: json|> field("name", node),
896+
},
895897
)
896898
andtypeReference= json=>
897899
TypeReference(
898900
Json.Decode.{
899901
pos: json|> field("pos", int),
900902
end_: json|> field("end", int),
901-
typeName: json|> field("typeName", node)
902-
}
903+
typeName: json|> field("typeName", node),
904+
},
903905
)
904906
andunknown= json=> {
905907
letkind=Json.Decode.field("kind",Json.Decode.int, json);
@@ -917,7 +919,7 @@ let parse = (fileName: string, source: string) => {
917919
fileName,
918920
source,
919921
Internal.ScriptTarget.es2015,
920-
Js.false_
922+
false,
921923
);
922924
Decoder.decode(sourceFile);
923925
};

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"homepage":"https://github.com/rrdelaney/ReasonablyTyped",
3030
"dependencies": {
31-
"@glennsl/bs-json":"^1.1.2",
31+
"@glennsl/bs-json":"^2.0.0",
3232
"babel-code-frame":"^6.26.0",
3333
"chalk":"^2.1.0",
3434
"css-tree":"^1.0.0-alpha.28",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp