How to write the function parameters that can automatically complete the body of the function by d.ts introduced in webstorm

when studying Mini Program, I found that webstorm has no relevant code hint plug-ins, only an old code snippet plug-in, so I want to write a d.ts by myself. The problem now is that there can be hints, but if the parameter is a function, it cannot complete the function body, for example:
index.d.ts

.
interface AppObj {
    onLaunch?(): void;
    onShow?(): void;
    onHide?(): void;
    onError?(): void;
    onPageNotFound?(): void;
    globalData?: Object;
}
declare function App(obj: AppObj):void;

index.js

App({
    onLa
})

if you enter onLa in js and press tab , you can complete it to onLaunch , but I want to complete it into the form of onLaunch () {} or onLaunch: function () {} or onLaunch: () = > {} , how to edit d.ts

May.11,2021

now the new version of the developer tool can create a new ts project. After you create a project, open the folder where there is a typings folder, and copy the d.ts inside

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3f174-43535.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3f174-43535.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?