未验证 提交 8795369a 编写于 作者: T tarunama 提交者: GitHub

chore(client-image): add return types (#20686)

上级 98752eb0
......@@ -109,7 +109,7 @@ type CallLoaderProps = {
quality?: number
}
function callLoader(loaderProps: CallLoaderProps) {
function callLoader(loaderProps: CallLoaderProps): string {
const load = loaders.get(configLoader)
if (load) {
return load({ root: configPath, ...loaderProps })
......@@ -446,7 +446,7 @@ export default function Image({
type LoaderProps = CallLoaderProps & { root: string }
function normalizeSrc(src: string) {
function normalizeSrc(src: string): string {
return src[0] === '/' ? src.slice(1) : src
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册