- api functions exist under api.* - they accept an abort signal and return a promise - they can be swapped out at build time depending on the platform (e.g.,window.method on desktop, fetch on mobile) - TanStack Query functions should only be used in components, and only when we need its features, favoring simpler api.* calls
23 lines
600 B
JSON
23 lines
600 B
JSON
{
|
|
"compilerOptions": {
|
|
"plugins": [{ "name": "typescript-plugin-css-modules" }],
|
|
"strict": true,
|
|
"target": "ESNext",
|
|
"module": "ESNext",
|
|
"moduleResolution": "node",
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"jsx": "preserve",
|
|
"jsxImportSource": "solid-js",
|
|
"types": ["vite/client", "vite-plugin-solid-svg/types-component-solid"],
|
|
"noEmit": true,
|
|
"resolveJsonModule": true,
|
|
"allowJs": true,
|
|
"isolatedModules": true,
|
|
"paths": {
|
|
"@/*": ["./*"],
|
|
"@api/clan/client": ["./src/api/clan/client-call"]
|
|
}
|
|
}
|
|
}
|