TypeScript API / @laikacms/vite-plugin / isSafeIdentifier
Function: isSafeIdentifier()
ts
function isSafeIdentifier(name): boolean;Returns true when name can be emitted verbatim as a named ESM export / destructuring binding: a syntactically valid identifier that is not a reserved word.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
boolean