New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arktype

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arktype - npm Package Compare versions

Comparing version 1.0.1-alpha to 1.0.2-alpha

dist/cjs/main.js

2

dist/types/utils/generics.d.ts

@@ -0,3 +1,3 @@

export declare const asConst: <t>(t: castWithExclusion<t, asConstRecurse<t>, []>) => castWithExclusion<t, asConstRecurse<t>, []>;
export type asConst<t> = castWithExclusion<t, asConstRecurse<t>, []>;
export declare const asConst: <t>(t: castWithExclusion<t, asConstRecurse<t>, []>) => castWithExclusion<t, asConstRecurse<t>, []>;
type asConstRecurse<t> = {

@@ -4,0 +4,0 @@ [k in keyof t]: t[k] extends Literalable | [] ? t[k] : asConstRecurse<t[k]>;

{
"name": "arktype",
"description": "The first isomorphic type system for TS/JS",
"version": "1.0.1-alpha",
"version": "1.0.2-alpha",
"author": {

@@ -15,9 +15,9 @@ "name": "David Blass",

"type": "module",
"main": "./dist/api.cjs",
"types": "./dist/api.d.ts",
"main": "./dist/cjs/main.js",
"types": "./dist/types/main.d.ts",
"exports": {
".": {
"types": "./dist/api.d.ts",
"import": "./dist/api.mjs",
"require": "./dist/api.cjs"
"types": "./dist/types/main.d.ts",
"import": "./dist/mjs/main.js",
"require": "./dist/cjs/main.js"
},

@@ -24,0 +24,0 @@ "./internal/*": {

@@ -26,3 +26,3 @@ <div align="center">

```ts @blockFrom:examples/type.ts
import { type } from "arktype"
import { type } from "../src/main.ts"

@@ -60,3 +60,3 @@ // Define a type...

```ts @blockFrom:examples/scope.ts
import { scope } from "arktype"
import { scope } from "../src/main.ts"

@@ -63,0 +63,0 @@ // Scopes are collections of types that can reference each other.

Sorry, the diff of this file is not supported yet

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