From 135c57e9dd33972c97366d65dca68feea93b70b7 Mon Sep 17 00:00:00 2001 From: Lucas zapico <12178702+LucasZapico@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:33:31 -0800 Subject: [PATCH] Update typescript.md with alternative import that resolved `This expression is not callable. Type 'typeof dayjs' has no call signatures.ts(2349)` --- docs/installation/typescript.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/installation/typescript.md b/docs/installation/typescript.md index 4a1c38989..ad4ca72ad 100644 --- a/docs/installation/typescript.md +++ b/docs/installation/typescript.md @@ -13,6 +13,14 @@ Import and use in your TypeScript file import * as dayjs from 'dayjs' dayjs().format() ``` +> ⚠️ Some TS repo have reported getting `this expression is not callable. + Type 'typeof dayjs' has no call signatures.ts(2349)` + +Alternative import 👇️ is a known resolution. + +```ts +import { default as dayjs } from 'dayjs'; +``` #### Have trouble importing Day.js?