Skip to content

Commit 2af2e8d

Browse files
committed
wip
1 parent 5e2c86c commit 2af2e8d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

packages/core/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ export interface SuggestedEditBase {
521521
/**
522522
* The data to insert into the message.
523523
*/
524-
data?: Record<string, string | number | boolean | bigint> | undefined; // TODO
524+
data?: Record<string, string | number | boolean | bigint> | undefined;
525525

526526
/**
527527
* The fix to be applied for the suggestion.

packages/core/tests/types/types.test.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,11 @@ const testRule: RuleDefinition<{
323323
foo: "foo",
324324
bar: 1,
325325
baz: true,
326-
qux: 1n,
326+
quz: 1n,
327+
// @ts-expect-error Symbols are not allowed in data
328+
quux: Symbol("quux"),
327329
// @ts-expect-error Objects are not allowed in data
328-
quux: {
330+
quuz: {
329331
hi: "hi",
330332
},
331333
// @ts-expect-error Functions are not allowed in data
@@ -345,8 +347,11 @@ const testRule: RuleDefinition<{
345347
foo: "foo",
346348
bar: 1,
347349
baz: true,
350+
quz: 1n,
351+
// @ts-expect-error Symbols are not allowed in data
352+
quux: Symbol("quux"),
348353
// @ts-expect-error Objects are not allowed in data
349-
quux: {
354+
quuz: {
350355
hi: "hi",
351356
},
352357
// @ts-expect-error Functions are not allowed in data

0 commit comments

Comments
 (0)