Socket
Socket
Sign inDemoInstall

@arktype/util

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arktype/util - npm Package Compare versions

Comparing version 0.0.39 to 0.0.40

16

out/records.d.ts

@@ -103,14 +103,10 @@ import type { array } from "./arrays.js";

* For each keyof o that also exists on jsDocSource, add associated JsDoc annotations to o.
* Cannot presrve modifiers on o like optionality.
* Does not preserve modifiers on o like optionality.
*/
export type withJsDoc<o, jsDocSource> = merge<o, Pick<{
[k in keyof jsDocSource]: k extends keyof o ? o[k] : never;
}, keyof o & keyof jsDocSource>>;
/**
* For each key of jsDocSource, returns the value of o with JsDoc annotations from jsDocSource.
* Works best when o will always have identical keys to jsDocSource.
*/
export type withExactJsDoc<o, jsDocSource> = {
[k in keyof jsDocSource]: o[k & keyof o];
export type withJsDoc<o, jsDocSource> = show<keyof o extends keyof jsDocSource ? keyof jsDocSource extends keyof o ? _withJsDoc<o, jsDocSource> : Pick<_withJsDoc<o, jsDocSource>, keyof o & keyof jsDocSource> : Pick<_withJsDoc<o, jsDocSource>, keyof o & keyof jsDocSource> & {
[k in Exclude<keyof o, keyof jsDocSource>]: o[k];
}>;
type _withJsDoc<o, jsDocSource> = {
[k in keyof jsDocSource]-?: o[k & keyof o];
};
export {};
{
"name": "@arktype/util",
"version": "0.0.39",
"version": "0.0.40",
"author": {

@@ -5,0 +5,0 @@ "name": "David Blass",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc