noodl-types
Advanced tools
Comparing version 1.0.194 to 1.0.196
@@ -149,2 +149,2 @@ import { ActionObject } from './actionTypes'; | ||
} | ||
export declare type PageComponentUrl<TargetPage extends string = string, CurrentPage extends string = string, ViewTag extends string = string> = `${TargetPage}@${CurrentPage}#${ViewTag}`; | ||
export declare type PageComponentUrl<S> = S extends `${string}@${string}#${string}` ? `${string}@${string}#${string}` : string; |
@@ -201,3 +201,8 @@ import isAwaitReference from './utils/isAwaitReference'; | ||
traverseReference: typeof isTraverseReference; | ||
pageComponentUrl(v?: string): v is `${string}@${string}#${string}`; | ||
/** | ||
* Returns true if the string is in the format: `${string}@${string}#${string}` | ||
* @param v | ||
* @returns { boolean } | ||
*/ | ||
pageComponentUrl<S extends string>(v: S | undefined): boolean; | ||
textBoard(v: unknown): v is t.TextBoardObject; | ||
@@ -204,0 +209,0 @@ textBoardItem<O_1 extends { |
@@ -170,3 +170,8 @@ "use strict"; | ||
traverseReference: isTraverseReference_1.default, | ||
pageComponentUrl(v = '') { | ||
/** | ||
* Returns true if the string is in the format: `${string}@${string}#${string}` | ||
* @param v | ||
* @returns { boolean } | ||
*/ | ||
pageComponentUrl(v) { | ||
if (!i.isStr(v)) | ||
@@ -173,0 +178,0 @@ return false; |
@@ -35,4 +35,1 @@ import { ActionObject } from './actionTypes'; | ||
} | ||
export declare namespace Url { | ||
type PageComponent<TargetPage extends string = string, CurrentPage extends string = string, ViewTag extends string = string> = TargetPage | `${TargetPage}@${CurrentPage}#${ViewTag}`; | ||
} |
@@ -40,3 +40,3 @@ { | ||
"typings": "./dist/index.d.ts", | ||
"version": "1.0.194" | ||
"version": "1.0.196" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107484
1856