-
Notifications
You must be signed in to change notification settings - Fork 560
(tree) Added new forest data and summary formats for incremental summaries #26002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
c5f3c75
09eb1f4
4dabf7b
805401c
06877b3
ee277d1
4b16672
69812f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | ||||||
| /*! | ||||||
| * Copyright (c) Microsoft Corporation and contributors. All rights reserved. | ||||||
| * Licensed under the MIT License. | ||||||
| */ | ||||||
|
|
||||||
| import type { Static } from "@sinclair/typebox"; | ||||||
|
|
||||||
| import { brand } from "../../util/index.js"; | ||||||
| import { FormatCommon, ForestFormatVersion } from "./formatCommon.js"; | ||||||
|
|
||||||
| export const FormatV1 = FormatCommon(brand<ForestFormatVersion>(ForestFormatVersion.v1)); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems odd. ForestFormatVersion is an enum, so it should not be used with out custom branding logic, it should already be sufficiently type safe.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
| export type FormatV1 = Static<typeof FormatV1>; | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | ||||||
| /*! | ||||||
| * Copyright (c) Microsoft Corporation and contributors. All rights reserved. | ||||||
| * Licensed under the MIT License. | ||||||
| */ | ||||||
|
|
||||||
| import type { Static } from "@sinclair/typebox"; | ||||||
|
|
||||||
| import { brand } from "../../util/index.js"; | ||||||
| import { FormatCommon, ForestFormatVersion } from "./formatCommon.js"; | ||||||
|
|
||||||
| export const FormatV2 = FormatCommon(brand<ForestFormatVersion>(ForestFormatVersion.v2)); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as the above comment. This is still a branded type. |
||||||
| export type FormatV2 = Static<typeof FormatV2>; | ||||||
Uh oh!
There was an error while loading. Please reload this page.