Browse Source

refactor(gui-v2): move injection keys to context dir

# What's changed?

* avoids naming collision with `components.d.ts`
pull/2803/head
braks 2 years ago
parent
commit
9117f76e5b
  1. 2
      packages/nc-gui-v2/context/index.ts

2
packages/nc-gui-v2/components/index.ts → packages/nc-gui-v2/context/index.ts

@ -1,7 +1,7 @@
import type { ColumnType, TableType, ViewType } from 'nocodb-sdk' import type { ColumnType, TableType, ViewType } from 'nocodb-sdk'
import type { InjectionKey, Ref } from 'vue' import type { InjectionKey, Ref } from 'vue'
import type { EventHook } from '@vueuse/core' import type { EventHook } from '@vueuse/core'
import type useViewData from '~/composables/useViewData' import type { useViewData } from '#imports'
export const ColumnInj: InjectionKey<ColumnType & { meta: any }> = Symbol('column-injection') export const ColumnInj: InjectionKey<ColumnType & { meta: any }> = Symbol('column-injection')
export const MetaInj: InjectionKey<Ref<TableType>> = Symbol('meta-injection') export const MetaInj: InjectionKey<Ref<TableType>> = Symbol('meta-injection')
Loading…
Cancel
Save