Migrate scripts to ESM and ts-check

This commit is contained in:
Jamie
2026-04-02 13:20:15 -07:00
committed by GitHub
parent 5e683b0c1a
commit f3595e0784
117 changed files with 3450 additions and 3376 deletions
+19
View File
@@ -0,0 +1,19 @@
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// @ts-check
import z from 'zod';
export const OptionalResourceSchema = z.object({
digest: z.string(),
url: z.string(),
size: z.number(),
});
/** @typedef {z.infer<typeof OptionalResourceSchema>} OptionalResourceType */
export const OptionalResourcesDictSchema = z.record(
z.string(),
OptionalResourceSchema
);
/** @typedef {z.infer<typeof OptionalResourcesDictSchema>} OptionalResourcesDictType */