Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@player-ui/types

Package Overview
Dependencies
Maintainers
2
Versions
299
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@player-ui/types - npm Package Compare versions

Comparing version 0.4.0-next.5 to 0.4.0-next.6

dist/xlr/Asset.json

19

dist/index.d.ts

@@ -206,4 +206,5 @@ /**

/** Each property describes a property of the object */
[key: string]: DataType;
[key: string]: DataTypes;
}
type DataTypes = DataType | RecordType | ArrayType;
/** Each prop in the object can have a specific DataType */

@@ -213,4 +214,2 @@ interface DataType<T = unknown> {

type: string;
/** The referenced object represents an array rather than an object */
isArray?: boolean;
/**

@@ -234,2 +233,16 @@ * Any additional validations that are associated with this property

}
/** Determines if the Datatype is a record object */
interface RecordType extends DataType {
/** boolean to define if its a record */
isRecord: boolean;
/** This property is mutually exclusive with RecordType and can not be used with ArrayType */
isArray?: never;
}
/** Determines if the DataType is an Array Object */
interface ArrayType extends DataType {
/** boolean to define if its an array */
isArray: boolean;
/** This property is mutually exclusive with ArrayType and can not be used with RecordType */
isRecord?: never;
}
}

@@ -236,0 +249,0 @@ /** Namespace to wrap up core functionality to be used by the Language Service */

2

package.json
{
"name": "@player-ui/types",
"version": "0.4.0-next.5",
"version": "0.4.0-next.6",
"private": false,

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -275,5 +275,7 @@ /**

/** Each property describes a property of the object */
[key: string]: DataType;
[key: string]: DataTypes;
}
export type DataTypes = DataType | RecordType | ArrayType;
/** Each prop in the object can have a specific DataType */

@@ -284,5 +286,2 @@ export interface DataType<T = unknown> {

/** The referenced object represents an array rather than an object */
isArray?: boolean;
/**

@@ -309,2 +308,19 @@ * Any additional validations that are associated with this property

}
/** Determines if the Datatype is a record object */
export interface RecordType extends DataType {
/** boolean to define if its a record */
isRecord: boolean;
/** This property is mutually exclusive with RecordType and can not be used with ArrayType */
isArray?: never;
}
/** Determines if the DataType is an Array Object */
export interface ArrayType extends DataType {
/** boolean to define if its an array */
isArray: boolean;
/** This property is mutually exclusive with ArrayType and can not be used with RecordType */
isRecord?: never;
}
}

@@ -311,0 +327,0 @@

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