mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 00:32:56 +03:00
added more data in typescript value
This commit is contained in:
1 parent
58b6a0eecb
commit
367e8e0a80
2 files changed
+8
-1
No files matched your search
@@ -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
|
||||
}`;
|
||||
@@ -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: "*"
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user