chore: migrate formatting to Oxfmt (#615)
This commit is contained in:
@@ -102,24 +102,22 @@ export const projectAppleAssetCatalogPage = (input: {
|
||||
}[];
|
||||
}) => {
|
||||
const all = input.catalogs.flatMap((catalog) =>
|
||||
catalog.records.map(
|
||||
(metadata, index): AppleAssetCatalogRecord => ({
|
||||
catalog_path: catalog.path,
|
||||
catalog_sha256: catalog.sha256,
|
||||
index,
|
||||
kind:
|
||||
typeof metadata.RenditionName === "string" ||
|
||||
typeof metadata.Name === "string"
|
||||
? "rendition"
|
||||
: "catalog",
|
||||
asset_name: typeof metadata.Name === "string" ? metadata.Name : null,
|
||||
rendition_name:
|
||||
typeof metadata.RenditionName === "string"
|
||||
? metadata.RenditionName
|
||||
: null,
|
||||
metadata,
|
||||
}),
|
||||
),
|
||||
catalog.records.map((metadata, index): AppleAssetCatalogRecord => ({
|
||||
catalog_path: catalog.path,
|
||||
catalog_sha256: catalog.sha256,
|
||||
index,
|
||||
kind:
|
||||
typeof metadata.RenditionName === "string" ||
|
||||
typeof metadata.Name === "string"
|
||||
? "rendition"
|
||||
: "catalog",
|
||||
asset_name: typeof metadata.Name === "string" ? metadata.Name : null,
|
||||
rendition_name:
|
||||
typeof metadata.RenditionName === "string"
|
||||
? metadata.RenditionName
|
||||
: null,
|
||||
metadata,
|
||||
})),
|
||||
);
|
||||
const records = all.slice(input.offset, input.offset + input.limit);
|
||||
const next = input.offset + records.length;
|
||||
|
||||
@@ -478,8 +478,9 @@ export class BinaryTargetError extends AnalysisError {
|
||||
}
|
||||
}
|
||||
|
||||
export interface AnalysisErrorProjection
|
||||
extends Readonly<Record<string, JsonValue>> {
|
||||
export interface AnalysisErrorProjection extends Readonly<
|
||||
Record<string, JsonValue>
|
||||
> {
|
||||
readonly code:
|
||||
| "invalid_request"
|
||||
| "unreadable_output"
|
||||
|
||||
@@ -47,8 +47,8 @@ type OneSidedNode =
|
||||
};
|
||||
|
||||
type ComparisonItemSemantic<
|
||||
Item extends
|
||||
ApplicationVersionComparisonItem = ApplicationVersionComparisonItem,
|
||||
Item extends ApplicationVersionComparisonItem =
|
||||
ApplicationVersionComparisonItem,
|
||||
> = Item extends ApplicationVersionComparisonItem
|
||||
? Omit<Item, "item_id">
|
||||
: never;
|
||||
|
||||
Reference in New Issue
Block a user