Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export types in shared #17954

Merged
merged 1 commit into from Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/shared/src/composables/use-collection.ts
Expand Up @@ -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>>;
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/composables/use-custom-selection.ts
@@ -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>;
};
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/composables/use-groupable.ts
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/src/composables/use-items.ts
Expand Up @@ -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[]>;
Expand All @@ -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']>;
Expand Down