Files
cinny/src/types/utils.ts
T
2026-11-04 12:57:53 +11:00

13 lines
302 B
TypeScript

/*
Cinny Project
Copyright 2021-present Ajay Bura
SPDX-License-Identifier: AGPL-3.0-only
https://cinny.in
Please see LICENSE file in root of repository for full details.
*/
export type WithRequiredProp<Type extends object, Key extends keyof Type> = Type & {
[Property in Key]-?: Type[Property];
};