🎥 Make videos programmatically with React
remove advanced usecase
Jonny Burger8161a9b330cc
diff --git a/packages/core/src/static-file.ts b/packages/core/src/static-file.tsindex e81ddc0128..c8874d3b0c 100644--- a/packages/core/src/static-file.ts+++ b/packages/core/src/static-file.ts@@ -14,28 +14,17 @@ const inner = (path: string): string => {return `/${trimLeadingSlash(path)}`;};-declare global {- // eslint-disable-next-line @typescript-eslint/no-empty-interface- interface RemotionStaticPaths {}-}-export type StaticFile = {path: string;sizeInBytes: number;lastModified: number;};-type LiteralUnion<LiteralType, BaseType extends string> =- | LiteralType- | (BaseType & Record<never, never>);-/*** Reference a file from the public/ folder.* If the file does not appear in the autocomplete, type the path manually.*/-export const staticFile = (- path: LiteralUnion<keyof RemotionStaticPaths, string>-) => {+export const staticFile = (path: string) => {if (path.startsWith('http://') || path.startsWith('https://')) {throw new TypeError(`staticFile() does not support remote URLs - got "${path}". Instead, pass the URL without wrapping it in staticFile(). See: https://remotion.dev/docs/staticfile-remote-urls`diff --git a/packages/example/autocomplete.d.ts b/packages/example/autocomplete.d.tsdeleted file mode 100644index 21d4a6e87e..0000000000--- a/packages/example/autocomplete.d.ts+++ /dev/null@@ -1,23 +0,0 @@-/*- This file will give you autocompletions for staticFile().- Enable autocompletion by adding "autocomplete.d.ts" to the "include" array in "tsconfig.json".- This file is auto-generated - do not edit this file!- You may add it to your `.gitignore`.-*/--declare global {- interface RemotionStaticPaths {- ["22khz.wav"]: unknown;- ["balloons.json"]: unknown;- ["bangers.woff2"]: unknown;- ["corrupted.mp4"]: unknown;- ["framer.webm"]: unknown;- ["framermp4withoutfileextension"]: unknown;- ["giphy.gif"]: unknown;- ["music.mp3"]: unknown;- ["nested/logö.png"]: unknown;- ["nested/mp4.png"]: unknown;- ["reverse-loader.json"]: unknown;- }-}-export {}