Skip to content

Visualize Your Ideas With Code

fix(docs): fix last updated footer (#776)

Jacob09c008587fcd
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 840a82f7..d575c934 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
diff --git a/packages/core/src/types/Color.ts b/packages/core/src/types/Color.ts
index 8ab367fb..b8bceaba 100644
--- a/packages/core/src/types/Color.ts
+++ b/packages/core/src/types/Color.ts
@@ -44,8 +44,16 @@ declare module 'chroma-js' {
}
}
-// iife prevents tree shaking from stripping our methods.
+/**
+ * Represents a color.
+ *
+ * @remarks
+ * This is the same class as the one created by
+ * {@link https://gka.github.io/chroma.js/ | chroma.js}. Check out their
+ * documentation for more information on how to use it.
+ */
type ExtendedColor = Color;
+// iife prevents tree shaking from stripping our methods.
const ExtendedColor: typeof Color = (() => {
Color.symbol = Color.prototype.symbol = Symbol.for(
'@motion-canvas/core/types/Color',