feat(ts-to-flow): add server side converter for typescript to flow (#138) (#140)

* feat(ts-to-flow): add server side converter for typescript to flow

* fixes
This commit is contained in:
Ritesh Kumar authored and GitHub committed 2019-08-05 23:00:53 +05:30
1 parent 7456d6e7bc
commit d28b270ed9
11 files changed
+272 -85

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
export default async function request(url: string, data: any) {
const res = await fetch(url, {
method: "POST",
body: typeof data === "object" ? JSON.stringify(data) : data
});
return await res.text();
}
+7 -1
View File
@@ -264,9 +264,15 @@ export const categorizedRoutes = [
iconName: "",
content: [
{
label: "Flow to Typescript",
label: "Flow to TypeScript",
path: "/flow-to-typescript"
},
{
label: "TypeScript to Flow",
path: "/typescript-to-flow",
packageName: "flowgen",
packageUrl: "https://github.com/joarwilk/flowgen"
},
{
label: "XML to JSON",
path: "/xml-to-json",