When defining a library's method definitions, you can use string templates to reference structures or unions (e.g., S.LPPOINT for POINT*). If these structures are referenced in the method definition, they will be automatically created when the library is loaded via load().
import * as D from '##/index.def.js'
import * as S from '##/index.struct.js'
import * as T from '##/index.types.js'
class DefWin {
// S.LPPOINT == 'POINT*'
static ClientToScreen = [D.BOOL, [D.HWND, `_Inout_ ${S.LPPOINT}`]]
// S.LPDISPLAY_DEVICEW == 'DISPLAY_DEVICEW*'
static EnumDisplayDevicesW = [D.BOOL, [D.LPCWSTR, D.DWORD, `_Inout_ ${S.LPDISPLAY_DEVICEW}`, D.DWORD]]
static GetCursorPos = [D.BOOL, [`_Out_ ${S.LPPOINT}`]]
}