Skip to content

Commit 5e9d24c

Browse files
committed
fix test typing
1 parent 8b8cefa commit 5e9d24c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/env/typescript-node/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ const config = {
1515
apiKey: 'masterKey',
1616
}
1717

18-
interface Movie {
18+
export interface Movie {
1919
id: number
2020
title: string
2121
genre?: string
22+
comment?: string
23+
isNull?: null
24+
isTrue?: true
2225
}
2326

2427
const client = new MeiliSearch(config)

tests/search.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
getClient,
1010
datasetWithNests,
1111
} from './utils/meilisearch-test-utils'
12+
import { Movie } from './env/typescript-node/src'
1213

1314
const index = {
1415
uid: 'movies_test',
@@ -17,7 +18,7 @@ const emptyIndex = {
1718
uid: 'empty_test',
1819
}
1920

20-
const dataset = [
21+
const dataset: Movie[] = [
2122
{
2223
id: 123,
2324
title: 'Pride and Prejudice',

0 commit comments

Comments
 (0)