From 42006cc18ee5ad67e29ac27f4a3377c6107c4e4f Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 17 Jun 2024 17:08:04 +0200 Subject: [PATCH] refactor(model): :recycle: update url string type to be more specific --- types.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types.ts b/types.ts index 96a3861..29a1199 100644 --- a/types.ts +++ b/types.ts @@ -28,4 +28,9 @@ export type Posix = { } export type Base64String = `${string}` -export type UrlString = `${string}` +export type UrlString = `${ + | 'data:' + | 'file://' + | 'http://' + | 'https://' + | 'git:'}${string}`