@fernapi/api
Advanced tools
Comparing version 0.1.6 to 1.1.11
@@ -1,7 +0,7 @@ | ||
import { TypeName } from "./TypeName"; | ||
import { NamedType } from "./NamedType"; | ||
import { WithDocs } from "./WithDocs"; | ||
export interface BaseService extends WithDocs { | ||
name: TypeName; | ||
name: NamedType; | ||
displayName: string; | ||
basePath: string; | ||
} |
@@ -18,2 +18,3 @@ export type { AliasTypeDefinition } from "./AliasTypeDefinition"; | ||
export type { MapType } from "./MapType"; | ||
export type { NamedType } from "./NamedType"; | ||
export type { ObjectField } from "./ObjectField"; | ||
@@ -26,3 +27,2 @@ export type { ObjectTypeDefinition } from "./ObjectTypeDefinition"; | ||
export type { TypeDefinition } from "./TypeDefinition"; | ||
export type { TypeName } from "./TypeName"; | ||
export { TypeReference } from "./TypeReference"; | ||
@@ -29,0 +29,0 @@ export type { UnionTypeDefinition } from "./UnionTypeDefinition"; |
@@ -0,7 +1,7 @@ | ||
import { NamedType } from "./NamedType"; | ||
import { ObjectField } from "./ObjectField"; | ||
import { TypeName } from "./TypeName"; | ||
export interface ObjectTypeDefinition { | ||
/** A list of other types to inherit from */ | ||
extends: TypeName[]; | ||
extends: NamedType[]; | ||
fields: ObjectField[]; | ||
} |
@@ -0,3 +1,3 @@ | ||
import { NamedType } from "./NamedType"; | ||
import { Type } from "./Type"; | ||
import { TypeName } from "./TypeName"; | ||
import { WithDocs } from "./WithDocs"; | ||
@@ -8,4 +8,4 @@ /** | ||
export interface TypeDefinition extends WithDocs { | ||
name: TypeName; | ||
name: NamedType; | ||
shape: Type; | ||
} |
import { ContainerType } from "./ContainerType"; | ||
import { NamedType } from "./NamedType"; | ||
import { PrimitiveType } from "./PrimitiveType"; | ||
import { TypeName } from "./TypeName"; | ||
export declare type TypeReference = TypeReference.Named | TypeReference.Primitive | TypeReference.Container | TypeReference.Void; | ||
export declare namespace TypeReference { | ||
interface Named extends TypeName { | ||
interface Named extends NamedType { | ||
type: "named"; | ||
@@ -21,3 +21,3 @@ } | ||
interface Visitor<R> { | ||
named: (value: TypeName) => R; | ||
named: (value: NamedType) => R; | ||
primitive: (value: PrimitiveType) => R; | ||
@@ -24,0 +24,0 @@ container: (value: ContainerType) => R; |
{ | ||
"name": "@fernapi/api", | ||
"version": "0.1.6", | ||
"version": "1.1.11", | ||
"main": "lib/index.js", | ||
@@ -13,2 +13,3 @@ "types": "lib/index.d.ts", | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -15,0 +16,0 @@ "typescript": "^4.6.3" |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
40077
1