( ...keys: S )
| 1266 | * @since 2.0.0 |
| 1267 | */ |
| 1268 | export const omit = <S extends ReadonlyArray<Key<any, any>>>( |
| 1269 | ...keys: S |
| 1270 | ) => |
| 1271 | <Services>(self: Context<Services>): Context<Exclude<Services, Service.Identifier<S[number]>>> => |
| 1272 | withFlat(self, (map) => { |
| 1273 | for (let i = 0; i < keys.length; i++) { |
| 1274 | map.delete(keys[i].key) |
| 1275 | } |
| 1276 | }) |
| 1277 | |
| 1278 | /** |
| 1279 | * Creates a context key with a default value. |