export types in shared (#17954)

This commit is contained in:
Nitwel
2023-03-27 15:55:37 +02:00
committed by GitHub
parent a5b81c7a2d
commit ac36125439
4 changed files with 7 additions and 7 deletions

View File

@@ -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>>;

View File

@@ -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>;
};

View File

@@ -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;

View File

@@ -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']>;