Skip to content

Conversation

@hzgotb
Copy link
Contributor

@hzgotb hzgotb commented Apr 19, 2024

No description provided.

@luin luin self-requested a review April 19, 2024 14:28
@hzgotb hzgotb force-pushed the perf-quill-register branch from 6d92a98 to 7e46419 Compare April 28, 2024 10:14
type RegistryTarget = Parchment.RegistryDefinition | Module | boolean;

interface RegistryRecord {
[key: `blots/${string}`]: Parchment.BlotConstructor;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this improve the type safety? The following code still passes:

Quill.register({
  'blots/abc': 'abc'
});

@hzgotb hzgotb force-pushed the perf-quill-register branch from 7e46419 to 4beca86 Compare April 30, 2024 07:45
@luin luin mentioned this pull request May 2, 2024
@hzgotb hzgotb force-pushed the perf-quill-register branch from 4beca86 to bb079b2 Compare May 6, 2024 07:09
@luin luin force-pushed the perf-quill-register branch 2 times, most recently from 2e59f38 to 7d9ed76 Compare May 13, 2024 02:01
@luin luin force-pushed the perf-quill-register branch from 7d9ed76 to cc0bd29 Compare May 13, 2024 02:06
@luin luin merged commit 1fd5c94 into slab:main May 13, 2024
@luin luin changed the title perf: type safety Fix typing errors for Quill.register May 13, 2024
@hzgotb hzgotb deleted the perf-quill-register branch June 5, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants