Skip to content

Commit

Permalink
remove options
Browse files Browse the repository at this point in the history
  • Loading branch information
jazibsawar committed Oct 28, 2024
1 parent f8e940a commit 9057418
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/types/generic.types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
export type GenericObject = Record<string, any>;
export type NonEmptyObject<T extends Record<string, unknown>> =
T extends Record<string, never> ? never : T;

export type GenericOptionsType = {
slug_field?: boolean;
content_editor?: boolean;
};
3 changes: 1 addition & 2 deletions src/types/objectRevision.type.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { GenericObject, GenericOptionsType } from './generic.types';
import { GenericObject } from './generic.types';

export type InsertObjectRevisionType = {
title?: string;
slug?: string;
content?: string;
options?: GenericOptionsType;
publish_at?: number;
unpublish_at?: number;
metadata?: GenericObject;
Expand Down

0 comments on commit 9057418

Please sign in to comment.