mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
fb583f303a
Summary: - Anchor links with row of 'new' could be created but weren't parsed or used correctly. This fixes it. - Also adds UIRowId type for row IDs which includes the special 'new' row. It's already been used in places as `number|'new'`, this diff gives it a name usable in app/common (it doesn't touch another name, RowId, that's been available in app/client). Test Plan: Added a test assert for anchor links to new row Reviewers: alexmojaki Reviewed By: alexmojaki Differential Revision: https://phab.getgrist.com/D3039
5 lines
255 B
TypeScript
5 lines
255 B
TypeScript
// This is the row ID used in the client, but it's helpful to have available in some common code
|
|
// as well, which is why it's declared in app/common. Note that for data actions and stored data,
|
|
// 'new' is not used.
|
|
export type UIRowId = number | 'new';
|