tldraw/apps/examples/e2e/tests
alex f9ed1bf2c9
Force interface instead of type for better docs (#3815)
Typescript's type aliases (`type X = thing`) can refer to basically
anything, which makes it hard to write an automatic document formatter
for them. Interfaces on the other hand are only object, so they play
much nicer with docs. Currently, object-flavoured type aliases don't
really get expanded at all on our docs site, which means we have a bunch
of docs content that's not shown on the site.

This diff introduces a lint rule that forces `interface X {foo: bar}`s
instead of `type X = {foo: bar}` where possible, as it results in a much
better documentation experience:

Before:
<img width="437" alt="Screenshot 2024-05-22 at 15 24 13"
src="https://github.com/tldraw/tldraw/assets/1489520/32606fd1-6832-4a1e-aa5f-f0534d160c92">

After:
<img width="431" alt="Screenshot 2024-05-22 at 15 33 01"
src="https://github.com/tldraw/tldraw/assets/1489520/4e0d59ee-c38e-4056-b9fd-6a7f15d28f0f">


### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `docs` — Changes to the documentation, examples, or templates.
- [x] `improvement` — Improving existing features
2024-05-22 15:55:49 +00:00
..
export-snapshots.spec.ts-snapshots textfields: fix RTL layout for SVG exports (#3680) 2024-05-03 13:40:59 +00:00
fixtures Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
test-canvas-events.spec.ts-snapshots Replace Atom.value with Atom.get() (#2189) 2023-11-13 11:51:22 +00:00
export-snapshots.spec.ts Bindings (#3326) 2024-05-08 12:37:31 +00:00
test-actions-menu.spec.ts Adding a single E2E test per menu (#2954) 2024-02-29 13:21:10 +00:00
test-api.spec.ts Fix jpg export and tests (#3198) 2024-03-18 15:08:09 +00:00
test-camera.spec.ts E2E camera tests (#3747) 2024-05-19 01:02:06 +00:00
test-canvas-events.spec.ts Input buffering (#3223) 2024-04-02 14:29:14 +00:00
test-clipboard.spec.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
test-context-menu.spec.ts Adding a single E2E test per menu (#2954) 2024-02-29 13:21:10 +00:00
test-focus.spec.ts build: disable flaky edit->edit focus test for now (#3803) 2024-05-21 21:46:14 +00:00
test-help-menu.spec.ts Adding a single E2E test per menu (#2954) 2024-02-29 13:21:10 +00:00
test-kbds.spec.ts Component-based toolbar customisation API (#3067) 2024-03-12 16:14:28 +00:00
test-main-menu.spec.ts Adding a single E2E test per menu (#2954) 2024-02-29 13:21:10 +00:00
test-navigation-panel.spec.ts Adding a single E2E test per menu (#2954) 2024-02-29 13:21:10 +00:00
test-page-menu.spec.ts Adding a single E2E test per menu (#2954) 2024-02-29 13:21:10 +00:00
test-routes.spec.ts PDF editor example (#3159) 2024-03-19 11:55:21 +00:00
test-shapes.spec.ts Input buffering (#3223) 2024-04-02 14:29:14 +00:00
test-smoke.spec.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
test-style-panel.spec.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
test-text.spec.ts Stickies: release candidate (#3249) 2024-04-14 18:40:02 +00:00
test-toolbar.spec.ts E2E Style Panel Tests (#2878) 2024-02-23 14:37:15 +00:00