Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 5128857

Browse files
committed
add TypeScript validation
1 parent e0a5b05 commit 5128857

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test-types.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11

22
// This file exists only so that we can run the TypeScript compiler in the CI build
33
// to validate our index.d.ts file.
4+
5+
import DynamoDBFeatureStore, { LDDynamoDBOptions } from 'launchdarkly-node-server-sdk-dynamodb';
6+
import { LDLogger } from 'launchdarkly-node-server-sdk';
7+
import { DynamoDB } from 'aws-sdk';
8+
9+
var emptyOptions: LDDynamoDBOptions = {};
10+
11+
var ddbOptions: DynamoDB.DocumentClient.DocumentClientOptions = {};
12+
var ddbClient: DynamoDB.DocumentClient = new DynamoDB.DocumentClient();
13+
var logger: LDLogger = { error: () => {}, warn: () => {}, info: () => {}, debug: () => {} };
14+
15+
var options: LDDynamoDBOptions = {
16+
clientOptions: ddbOptions,
17+
dynamoDBClient: ddbClient,
18+
prefix: 'x',
19+
cacheTTL: 30,
20+
logger: logger
21+
};

0 commit comments

Comments
 (0)