Skip to content

Commit dcee05f

Browse files
committed
fix: auto-complete for resource all options fields
1 parent a32133d commit dcee05f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adminforth/types/Back.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { ActionCheckSource, AdminForthFilterOperators, AdminForthSortDirections,
1515
AdminForthResourcePages,
1616
AdminForthResourceColumnInputCommon,
1717
} from './Common.js';
18-
import { AnyCnameRecord } from 'dns';
1918

2019
export interface ICodeInjector {
2120
srcFoldersToSync: Object;
@@ -759,7 +758,7 @@ export interface AdminForthActionInput {
759758
id?: string;
760759
}
761760

762-
export interface AdminForthResourceInput extends Omit<AdminForthResourceInputCommon, 'columns' | 'hooks' | 'options'> {
761+
export interface AdminForthResourceInput extends Omit<NonNullable<AdminForthResourceInputCommon>, 'columns' | 'hooks' | 'options'> {
763762

764763
/**
765764
* Array of plugins which will be used to modify resource configuration.
@@ -1160,7 +1159,7 @@ export type AllowedActions = {
11601159
/**
11611160
* General options for resource.
11621161
*/
1163-
export interface ResourceOptionsInput extends Omit<AdminForthResourceCommon['options'], 'allowedActions' | 'bulkActions'> {
1162+
export interface ResourceOptionsInput extends Omit<NonNullable<AdminForthResourceInputCommon['options']>, 'allowedActions' | 'bulkActions'> {
11641163

11651164
/**
11661165
* Custom bulk actions list. Bulk actions available in list view when user selects multiple records by

0 commit comments

Comments
 (0)