You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function validateCreateUserInput(input:CreateUserInput):void {
377
+
if (!input.email||!input.name) {
378
+
thrownewError('Email and name are required')
379
+
}
380
+
}
381
+
```
382
+
383
+
These imports provide full TypeScript support with autocompletion, type checking, and IntelliSense in your IDE.
384
+
339
385
> [!TIP]
340
386
> **Nitro Auto-Imports**: Thanks to Nitro's auto-import feature, you don't need to manually import `defineResolver`, `defineQuery`, `defineMutation`, and other utilities in your resolver files. They're available globally! However, if you prefer explicit imports, you can use:
0 commit comments