@dbpath/types
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -8,5 +8,7 @@ import { TwoIds } from "@dbpath/dal"; | ||
export interface LinkInPath extends TableInPath { | ||
previousLink?: LinkInPath; | ||
previousLink: PathItem; | ||
idEquals: TwoIds[]; | ||
} | ||
export type PathItem = LinkInPath | TableInPath; | ||
export declare function isLinkInPath(p: PathItem): p is LinkInPath; | ||
export declare function isTableInPath(p: PathItem): p is TableInPath; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isTableInPath = exports.isLinkInPath = void 0; | ||
function isLinkInPath(p) { | ||
return p.previousLink !== undefined; | ||
} | ||
exports.isLinkInPath = isLinkInPath; | ||
function isTableInPath(p) { | ||
return !isLinkInPath(p); | ||
} | ||
exports.isTableInPath = isTableInPath; |
{ | ||
"name": "@dbpath/types", | ||
"description": "", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"main": "dist/index", | ||
@@ -6,0 +6,0 @@ "types": "dist/index", |
2528
42