mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
export types in shared (#17954)
This commit is contained in:
@@ -2,7 +2,7 @@ import { useStores } from './use-system';
|
||||
import { AppCollection, Field } from '../types';
|
||||
import { computed, ref, Ref, ComputedRef } from 'vue';
|
||||
|
||||
type UsableCollection = {
|
||||
export type UsableCollection = {
|
||||
info: ComputedRef<AppCollection | null>;
|
||||
fields: ComputedRef<Field[]>;
|
||||
defaults: ComputedRef<Record<string, any>>;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { nanoid } from 'nanoid';
|
||||
import { computed, ComputedRef, Ref, ref, watch } from 'vue';
|
||||
|
||||
type UsableCustomSelection = {
|
||||
export type UsableCustomSelection = {
|
||||
otherValue: Ref<string | null>;
|
||||
usesOtherValue: ComputedRef<boolean>;
|
||||
};
|
||||
|
||||
@@ -10,14 +10,14 @@ export type GroupableInstance = {
|
||||
* Used to make child item part of the group context. Needs to be used in a component that is a child
|
||||
* of a component that has the `useGroupableParent` composition enabled
|
||||
*/
|
||||
type GroupableOptions = {
|
||||
export type GroupableOptions = {
|
||||
value?: string | number;
|
||||
group?: string;
|
||||
active?: Ref<boolean>;
|
||||
watch?: boolean;
|
||||
};
|
||||
|
||||
type UsableGroupable = {
|
||||
export type UsableGroupable = {
|
||||
active: Ref<boolean>;
|
||||
toggle: () => void;
|
||||
activate: () => void;
|
||||
|
||||
@@ -6,12 +6,12 @@ import { getEndpoint, moveInArray } from '../utils';
|
||||
import { isEqual, throttle } from 'lodash';
|
||||
import { computed, ComputedRef, ref, Ref, watch, WritableComputedRef, unref } from 'vue';
|
||||
|
||||
type ManualSortData = {
|
||||
export type ManualSortData = {
|
||||
item: string | number;
|
||||
to: string | number;
|
||||
};
|
||||
|
||||
type UsableItems = {
|
||||
export type UsableItems = {
|
||||
itemCount: Ref<number | null>;
|
||||
totalCount: Ref<number | null>;
|
||||
items: Ref<Item[]>;
|
||||
@@ -24,7 +24,7 @@ type UsableItems = {
|
||||
getItemCount: () => Promise<void>;
|
||||
};
|
||||
|
||||
type ComputedQuery = {
|
||||
export type ComputedQuery = {
|
||||
fields: Ref<Query['fields']> | ComputedRef<Query['fields']> | WritableComputedRef<Query['fields']>;
|
||||
alias?: Ref<Query['alias']> | ComputedRef<Query['alias']> | WritableComputedRef<Query['alias']>;
|
||||
limit: Ref<Query['limit']> | ComputedRef<Query['limit']> | WritableComputedRef<Query['limit']>;
|
||||
|
||||
Reference in New Issue
Block a user