Skip to content

Commit

Permalink
fix: remove unused disable option
Browse files Browse the repository at this point in the history
  • Loading branch information
nicgirault committed Sep 18, 2020
1 parent 81536be commit 5926c48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export interface Actions<I extends string | number, R> {

interface CrudOptions {
filters: FiltersOption
disable: string[] | ((body: any) => boolean)
}

export { sequelizeSearchFields } from './sequelize/searchList'
Expand All @@ -28,7 +27,7 @@ export { GetOne, Create, Destroy, Update, GetList, Search }
export const crud = <I extends string | number, R>(
path: string,
actions: Partial<Actions<I, R>>,
options?: CrudOptions
options?: Partial<CrudOptions>
) => {
const router = Router()
router.use(bodyParser.json())
Expand Down

0 comments on commit 5926c48

Please sign in to comment.