chore: configura eslint flat config + prettier
This commit is contained in:
parent
4eafb0c5d0
commit
fe6a98d94b
6
.prettierignore
Normal file
6
.prettierignore
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
dist
|
||||||
|
node_modules
|
||||||
|
_poc-reference
|
||||||
|
supabase/.branches
|
||||||
|
supabase/.temp
|
||||||
|
pnpm-lock.yaml
|
||||||
9
.prettierrc
Normal file
9
.prettierrc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"printWidth": 100,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"arrowParens": "always",
|
||||||
|
"endOfLine": "lf"
|
||||||
|
}
|
||||||
27
eslint.config.js
Normal file
27
eslint.config.js
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import js from '@eslint/js'
|
||||||
|
import globals from 'globals'
|
||||||
|
import reactHooks from 'eslint-plugin-react-hooks'
|
||||||
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||||
|
import tseslint from 'typescript-eslint'
|
||||||
|
import prettier from 'eslint-config-prettier'
|
||||||
|
|
||||||
|
export default tseslint.config(
|
||||||
|
{ ignores: ['dist', '_poc-reference', 'supabase', 'node_modules'] },
|
||||||
|
{
|
||||||
|
extends: [js.configs.recommended, ...tseslint.configs.recommended, prettier],
|
||||||
|
files: ['**/*.{ts,tsx}'],
|
||||||
|
languageOptions: {
|
||||||
|
ecmaVersion: 2022,
|
||||||
|
globals: globals.browser,
|
||||||
|
},
|
||||||
|
plugins: {
|
||||||
|
'react-hooks': reactHooks,
|
||||||
|
'react-refresh': reactRefresh,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
...reactHooks.configs.recommended.rules,
|
||||||
|
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
||||||
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
)
|
||||||
@ -27,6 +27,7 @@
|
|||||||
"tailwind-merge": "^2.5.0"
|
"tailwind-merge": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@eslint/js": "^10.0.1",
|
||||||
"@tailwindcss/vite": "^4.0.0",
|
"@tailwindcss/vite": "^4.0.0",
|
||||||
"@testing-library/jest-dom": "^6.5.0",
|
"@testing-library/jest-dom": "^6.5.0",
|
||||||
"@testing-library/react": "^16.0.0",
|
"@testing-library/react": "^16.0.0",
|
||||||
|
|||||||
16
pnpm-lock.yaml
generated
16
pnpm-lock.yaml
generated
@ -39,6 +39,9 @@ importers:
|
|||||||
specifier: ^2.5.0
|
specifier: ^2.5.0
|
||||||
version: 2.6.1
|
version: 2.6.1
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
'@eslint/js':
|
||||||
|
specifier: ^10.0.1
|
||||||
|
version: 10.0.1(eslint@9.39.4(jiti@2.6.1))
|
||||||
'@tailwindcss/vite':
|
'@tailwindcss/vite':
|
||||||
specifier: ^4.0.0
|
specifier: ^4.0.0
|
||||||
version: 4.2.2(vite@6.4.2(@types/node@22.19.17)(jiti@2.6.1)(lightningcss@1.32.0))
|
version: 4.2.2(vite@6.4.2(@types/node@22.19.17)(jiti@2.6.1)(lightningcss@1.32.0))
|
||||||
@ -402,6 +405,15 @@ packages:
|
|||||||
resolution: {integrity: sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==}
|
resolution: {integrity: sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
||||||
|
'@eslint/js@10.0.1':
|
||||||
|
resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==}
|
||||||
|
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
|
||||||
|
peerDependencies:
|
||||||
|
eslint: ^10.0.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
eslint:
|
||||||
|
optional: true
|
||||||
|
|
||||||
'@eslint/js@9.39.4':
|
'@eslint/js@9.39.4':
|
||||||
resolution: {integrity: sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==}
|
resolution: {integrity: sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
@ -2164,6 +2176,10 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
|
'@eslint/js@10.0.1(eslint@9.39.4(jiti@2.6.1))':
|
||||||
|
optionalDependencies:
|
||||||
|
eslint: 9.39.4(jiti@2.6.1)
|
||||||
|
|
||||||
'@eslint/js@9.39.4': {}
|
'@eslint/js@9.39.4': {}
|
||||||
|
|
||||||
'@eslint/object-schema@2.1.7': {}
|
'@eslint/object-schema@2.1.7': {}
|
||||||
|
|||||||
@ -29,8 +29,7 @@ const buttonVariants = cva(
|
|||||||
)
|
)
|
||||||
|
|
||||||
interface ButtonProps
|
interface ButtonProps
|
||||||
extends ButtonHTMLAttributes<HTMLButtonElement>,
|
extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
||||||
VariantProps<typeof buttonVariants> {
|
|
||||||
asChild?: boolean
|
asChild?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,16 +1,10 @@
|
|||||||
export type Json =
|
export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[]
|
||||||
| string
|
|
||||||
| number
|
|
||||||
| boolean
|
|
||||||
| null
|
|
||||||
| { [key: string]: Json | undefined }
|
|
||||||
| Json[]
|
|
||||||
|
|
||||||
export type Database = {
|
export type Database = {
|
||||||
// Allows to automatically instantiate createClient with right options
|
// Allows to automatically instantiate createClient with right options
|
||||||
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
||||||
__InternalSupabase: {
|
__InternalSupabase: {
|
||||||
PostgrestVersion: "13.0.4"
|
PostgrestVersion: '13.0.4'
|
||||||
}
|
}
|
||||||
reserva_hotel: {
|
reserva_hotel: {
|
||||||
Tables: {
|
Tables: {
|
||||||
@ -95,11 +89,11 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "extras_id_marca_fkey"
|
foreignKeyName: 'extras_id_marca_fkey'
|
||||||
columns: ["id_marca"]
|
columns: ['id_marca']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "marcas"
|
referencedRelation: 'marcas'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -139,11 +133,11 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "fotos_categoria_id_unidade_fkey"
|
foreignKeyName: 'fotos_categoria_id_unidade_fkey'
|
||||||
columns: ["id_unidade"]
|
columns: ['id_unidade']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "unidades"
|
referencedRelation: 'unidades'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -219,11 +213,11 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "precos_id_marca_fkey"
|
foreignKeyName: 'precos_id_marca_fkey'
|
||||||
columns: ["id_marca"]
|
columns: ['id_marca']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "marcas"
|
referencedRelation: 'marcas'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -248,25 +242,25 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "reserva_extras_id_extra_fkey"
|
foreignKeyName: 'reserva_extras_id_extra_fkey'
|
||||||
columns: ["id_extra"]
|
columns: ['id_extra']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "extras"
|
referencedRelation: 'extras'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
foreignKeyName: "reserva_extras_id_reserva_fkey"
|
foreignKeyName: 'reserva_extras_id_reserva_fkey'
|
||||||
columns: ["id_reserva"]
|
columns: ['id_reserva']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "reservas"
|
referencedRelation: 'reservas'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
foreignKeyName: "reserva_extras_id_reserva_fkey"
|
foreignKeyName: 'reserva_extras_id_reserva_fkey'
|
||||||
columns: ["id_reserva"]
|
columns: ['id_reserva']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "vw_reservas_completa"
|
referencedRelation: 'vw_reservas_completa'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -354,18 +348,18 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "reservas_id_suite_fkey"
|
foreignKeyName: 'reservas_id_suite_fkey'
|
||||||
columns: ["id_suite"]
|
columns: ['id_suite']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "suites"
|
referencedRelation: 'suites'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
foreignKeyName: "reservas_id_unidade_fkey"
|
foreignKeyName: 'reservas_id_unidade_fkey'
|
||||||
columns: ["id_unidade"]
|
columns: ['id_unidade']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "unidades"
|
referencedRelation: 'unidades'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -429,18 +423,18 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "suites_unidades_id_suite_fkey"
|
foreignKeyName: 'suites_unidades_id_suite_fkey'
|
||||||
columns: ["id_suite"]
|
columns: ['id_suite']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "suites"
|
referencedRelation: 'suites'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
foreignKeyName: "suites_unidades_id_unidade_fkey"
|
foreignKeyName: 'suites_unidades_id_unidade_fkey'
|
||||||
columns: ["id_unidade"]
|
columns: ['id_unidade']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "unidades"
|
referencedRelation: 'unidades'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -489,18 +483,18 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "unidades_id_conta_pagamento_fkey"
|
foreignKeyName: 'unidades_id_conta_pagamento_fkey'
|
||||||
columns: ["id_conta_pagamento"]
|
columns: ['id_conta_pagamento']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "contas_pagamento"
|
referencedRelation: 'contas_pagamento'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
foreignKeyName: "unidades_id_marca_fkey"
|
foreignKeyName: 'unidades_id_marca_fkey'
|
||||||
columns: ["id_marca"]
|
columns: ['id_marca']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "marcas"
|
referencedRelation: 'marcas'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -522,11 +516,11 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "precos_id_marca_fkey"
|
foreignKeyName: 'precos_id_marca_fkey'
|
||||||
columns: ["id_marca"]
|
columns: ['id_marca']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "marcas"
|
referencedRelation: 'marcas'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -562,18 +556,18 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "reservas_id_suite_fkey"
|
foreignKeyName: 'reservas_id_suite_fkey'
|
||||||
columns: ["id_suite"]
|
columns: ['id_suite']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "suites"
|
referencedRelation: 'suites'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
foreignKeyName: "reservas_id_unidade_fkey"
|
foreignKeyName: 'reservas_id_unidade_fkey'
|
||||||
columns: ["id_unidade"]
|
columns: ['id_unidade']
|
||||||
isOneToOne: false
|
isOneToOne: false
|
||||||
referencedRelation: "unidades"
|
referencedRelation: 'unidades'
|
||||||
referencedColumns: ["id"]
|
referencedColumns: ['id']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -598,33 +592,31 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
|
type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>
|
||||||
|
|
||||||
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
|
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>]
|
||||||
|
|
||||||
export type Tables<
|
export type Tables<
|
||||||
DefaultSchemaTableNameOrOptions extends
|
DefaultSchemaTableNameOrOptions extends
|
||||||
| keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
|
| keyof (DefaultSchema['Tables'] & DefaultSchema['Views'])
|
||||||
| { schema: keyof DatabaseWithoutInternals },
|
| { schema: keyof DatabaseWithoutInternals },
|
||||||
TableName extends DefaultSchemaTableNameOrOptions extends {
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
|
||||||
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])
|
||||||
: never = never,
|
: never = never,
|
||||||
> = DefaultSchemaTableNameOrOptions extends {
|
> = DefaultSchemaTableNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
|
||||||
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
||||||
Row: infer R
|
Row: infer R
|
||||||
}
|
}
|
||||||
? R
|
? R
|
||||||
: never
|
: never
|
||||||
: DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
|
: DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views'])
|
||||||
DefaultSchema["Views"])
|
? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
||||||
? (DefaultSchema["Tables"] &
|
|
||||||
DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
||||||
Row: infer R
|
Row: infer R
|
||||||
}
|
}
|
||||||
? R
|
? R
|
||||||
@ -633,23 +625,23 @@ export type Tables<
|
|||||||
|
|
||||||
export type TablesInsert<
|
export type TablesInsert<
|
||||||
DefaultSchemaTableNameOrOptions extends
|
DefaultSchemaTableNameOrOptions extends
|
||||||
| keyof DefaultSchema["Tables"]
|
| keyof DefaultSchema['Tables']
|
||||||
| { schema: keyof DatabaseWithoutInternals },
|
| { schema: keyof DatabaseWithoutInternals },
|
||||||
TableName extends DefaultSchemaTableNameOrOptions extends {
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
|
||||||
: never = never,
|
: never = never,
|
||||||
> = DefaultSchemaTableNameOrOptions extends {
|
> = DefaultSchemaTableNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
||||||
Insert: infer I
|
Insert: infer I
|
||||||
}
|
}
|
||||||
? I
|
? I
|
||||||
: never
|
: never
|
||||||
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
|
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables']
|
||||||
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
||||||
Insert: infer I
|
Insert: infer I
|
||||||
}
|
}
|
||||||
? I
|
? I
|
||||||
@ -658,23 +650,23 @@ export type TablesInsert<
|
|||||||
|
|
||||||
export type TablesUpdate<
|
export type TablesUpdate<
|
||||||
DefaultSchemaTableNameOrOptions extends
|
DefaultSchemaTableNameOrOptions extends
|
||||||
| keyof DefaultSchema["Tables"]
|
| keyof DefaultSchema['Tables']
|
||||||
| { schema: keyof DatabaseWithoutInternals },
|
| { schema: keyof DatabaseWithoutInternals },
|
||||||
TableName extends DefaultSchemaTableNameOrOptions extends {
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
|
||||||
: never = never,
|
: never = never,
|
||||||
> = DefaultSchemaTableNameOrOptions extends {
|
> = DefaultSchemaTableNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
||||||
Update: infer U
|
Update: infer U
|
||||||
}
|
}
|
||||||
? U
|
? U
|
||||||
: never
|
: never
|
||||||
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
|
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables']
|
||||||
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
||||||
Update: infer U
|
Update: infer U
|
||||||
}
|
}
|
||||||
? U
|
? U
|
||||||
@ -683,36 +675,36 @@ export type TablesUpdate<
|
|||||||
|
|
||||||
export type Enums<
|
export type Enums<
|
||||||
DefaultSchemaEnumNameOrOptions extends
|
DefaultSchemaEnumNameOrOptions extends
|
||||||
| keyof DefaultSchema["Enums"]
|
| keyof DefaultSchema['Enums']
|
||||||
| { schema: keyof DatabaseWithoutInternals },
|
| { schema: keyof DatabaseWithoutInternals },
|
||||||
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums']
|
||||||
: never = never,
|
: never = never,
|
||||||
> = DefaultSchemaEnumNameOrOptions extends {
|
> = DefaultSchemaEnumNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums'][EnumName]
|
||||||
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
|
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums']
|
||||||
? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
|
? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions]
|
||||||
: never
|
: never
|
||||||
|
|
||||||
export type CompositeTypes<
|
export type CompositeTypes<
|
||||||
PublicCompositeTypeNameOrOptions extends
|
PublicCompositeTypeNameOrOptions extends
|
||||||
| keyof DefaultSchema["CompositeTypes"]
|
| keyof DefaultSchema['CompositeTypes']
|
||||||
| { schema: keyof DatabaseWithoutInternals },
|
| { schema: keyof DatabaseWithoutInternals },
|
||||||
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes']
|
||||||
: never = never,
|
: never = never,
|
||||||
> = PublicCompositeTypeNameOrOptions extends {
|
> = PublicCompositeTypeNameOrOptions extends {
|
||||||
schema: keyof DatabaseWithoutInternals
|
schema: keyof DatabaseWithoutInternals
|
||||||
}
|
}
|
||||||
? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'][CompositeTypeName]
|
||||||
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
|
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes']
|
||||||
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions]
|
||||||
: never
|
: never
|
||||||
|
|
||||||
export const Constants = {
|
export const Constants = {
|
||||||
|
|||||||
@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
"files": [],
|
"files": [],
|
||||||
"references": [
|
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }],
|
||||||
{ "path": "./tsconfig.app.json" },
|
|
||||||
{ "path": "./tsconfig.node.json" }
|
|
||||||
],
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"skipLibCheck": true
|
"skipLibCheck": true
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user