mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-22 15:49:10 +01:00
Migrate scripts to ESM and ts-check
This commit is contained in:
@@ -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 */
|
||||
Reference in New Issue
Block a user