added more data in typescript value

This commit is contained in:
ritz078 committed 2020-06-05 00:17:58 +05:30
1 parent 58b6a0eecb
commit 367e8e0a80
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -355,4 +355,11 @@ export const typeScriptInterface = `export interface Root {
id: number;
title: string;
completed: boolean;
}
export interface Props {
/** The user's name */
name: string;
/** Should the name be rendered in bold */
priority?: boolean
}`;
+1 -1
View File
@@ -9,7 +9,7 @@ export default (req: NextApiRequest, res: NextApiResponse) => {
const filePath = tempy.writeSync(req.body, { extension: "ts" });
const config: Config = {
path: filePath,
expose: "none",
expose: "all",
jsDoc: "extended",
type: "*"
};