Skip to content

Commit

Permalink
Fixed publish
Browse files Browse the repository at this point in the history
  • Loading branch information
smikhalevski committed Feb 6, 2024
1 parent eef3410 commit 3bf0219
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/doubter-plugin/src/test/doubterPlugin.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { annotationsPlugin, AnnotationsPlugin } from '@roqueform/annotations-plugin';
import { DoubterPlugin, doubterPlugin } from '@roqueform/doubter-plugin';
import * as d from 'doubter';
import { composePlugins, createField, Field } from 'roqueform';
import { createField, Field } from 'roqueform';
import { expectType } from 'tsd';

const shape = d.object({ aaa: d.object({ bbb: d.string() }) });

expectType<Field<{ aaa: { bbb: string } }, DoubterPlugin>>(createField({ aaa: { bbb: 'aaa' } }, doubterPlugin(shape)));

expectType<Field<{ aaa: { bbb: string } }, AnnotationsPlugin<{ xxx: string }> & DoubterPlugin>>(
createField({ aaa: { bbb: 'aaa' } }, composePlugins(doubterPlugin(shape), annotationsPlugin({ xxx: 'yyy' })))
);

0 comments on commit 3bf0219

Please sign in to comment.