mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
Rename files
This commit is contained in:
21
ts/types/OptionalResource.std.ts
Normal file
21
ts/types/OptionalResource.std.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import z from 'zod';
|
||||
|
||||
export const OptionalResourceSchema = z.object({
|
||||
digest: z.string(),
|
||||
url: z.string(),
|
||||
size: z.number(),
|
||||
});
|
||||
|
||||
export type OptionalResourceType = z.infer<typeof OptionalResourceSchema>;
|
||||
|
||||
export const OptionalResourcesDictSchema = z.record(
|
||||
z.string(),
|
||||
OptionalResourceSchema
|
||||
);
|
||||
|
||||
export type OptionalResourcesDictType = z.infer<
|
||||
typeof OptionalResourcesDictSchema
|
||||
>;
|
||||
Reference in New Issue
Block a user