Skip to content

Commit

Permalink
fix rest param type generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkishi committed Mar 16, 2022
1 parent 2d6f0d2 commit fa28c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/core/sync/write_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function write_types(config, manifest_data) {
/** @type {string[]} */
const params = [];

const pattern = /\[([^\]]+)\]/g;
const pattern = /\[(?:\.{3})?([^\]]+)\]/g;
let match;

while ((match = pattern.exec(key))) {
Expand Down

0 comments on commit fa28c44

Please sign in to comment.