From e268530752438572073589831d5d7a975aec00c9 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Thu, 2 Jun 2022 15:40:14 +1000 Subject: [PATCH] fix: prefer `Pick` over `Partial` --- src/runtime/server/transformers/path-meta.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/server/transformers/path-meta.ts b/src/runtime/server/transformers/path-meta.ts index 2929f4e06..2cdb67156 100644 --- a/src/runtime/server/transformers/path-meta.ts +++ b/src/runtime/server/transformers/path-meta.ts @@ -6,14 +6,14 @@ import { useRuntimeConfig } from '#imports' const SEMVER_REGEX = /^(\d+)(\.\d+)*(\.x)?$/ -const describeId = (_id: string): Partial => { +const describeId = (_id: string) => { const [_source, ...parts] = _id.split(':') const [, filename, _extension] = parts[parts.length - 1].match(/(.*)\.([^.]+)$/) parts[parts.length - 1] = filename const _path = parts.join('/') - return { + return > { _source, _path, _extension,