// Copyright (c) 2025 Joseph Hale // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. /** * `Optional` makes only the attributes in `Union` optional, as opposed to `Partial` which makes _all_ attributes of `Type` optional. */ export type Optional = Pick, K> & Omit; // Source: https://stackoverflow.com/a/61108377/14765128