repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/rsc-vite-framework/app/routes/mdx-glob.$post/posts/posts.ts
playground/rsc-vite-framework/app/routes/mdx-glob.$post/posts/posts.ts
import nodePath from "node:path"; type BlogPost = { Component: React.ComponentType; path: string; title: string; slug: string; }; async function resolvePosts(): Promise<{ [slug: string]: () => Promise<BlogPost>; }> { const rawPosts = (await import.meta.glob("./*/*.mdx")) as Record< string, () => P...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/rsc-vite-framework/app/routes/mdx-glob.$post/posts/hello/hello-component.tsx
playground/rsc-vite-framework/app/routes/mdx-glob.$post/posts/hello/hello-component.tsx
import styles from "./hello-component.module.css"; export function HelloComponent() { return <p className={styles.root}>Hello Component</p>; }
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/rsc-vite-framework/app/routes/mdx-glob.$post/posts/world/world-component.tsx
playground/rsc-vite-framework/app/routes/mdx-glob.$post/posts/world/world-component.tsx
import styles from "./world-component.module.css"; export function WorldComponent() { return <p className={styles.root}>World Component</p>; }
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/rsc-vite-framework/app/routes/client-loader-hydrate/route.tsx
playground/rsc-vite-framework/app/routes/client-loader-hydrate/route.tsx
import type { Route } from "./+types/route"; import styles from "./styles.module.css"; export function loader() { return "hello, world from server loader"; } export function clientLoader() { return "hello, world from client loader"; } clientLoader.hydrate = true; export default function ClientLoaderHydrateRout...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework/react-router.config.ts
playground/framework/react-router.config.ts
import type { Config } from "@react-router/dev/config"; export default { future: { unstable_subResourceIntegrity: true, }, } satisfies Config;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework/vite.config.ts
playground/framework/vite.config.ts
import { reactRouter } from "@react-router/dev/vite"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [reactRouter(), tsconfigPaths()], });
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework/app/routes.ts
playground/framework/app/routes.ts
import { type RouteConfig, index, route } from "@react-router/dev/routes"; export default [ index("routes/_index.tsx"), route("products/:id", "routes/product.tsx"), ] satisfies RouteConfig;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework/app/root.tsx
playground/framework/app/root.tsx
import { Link, Links, Meta, Outlet, Scripts, ScrollRestoration, } from "react-router"; export function Layout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework/app/routes/product.tsx
playground/framework/app/routes/product.tsx
import type { Route } from "./+types/product"; export function loader({ params }: Route.LoaderArgs) { return { name: `Super cool product #${params.id}` }; } export default function Component({ loaderData }: Route.ComponentProps) { return <h1>{loaderData.name}</h1>; }
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework/app/routes/_index.tsx
playground/framework/app/routes/_index.tsx
import type { Route } from "./+types/_index"; export function loader({ params }: Route.LoaderArgs) { return { planet: "world", date: new Date(), fn: () => 1 }; } export default function Index({ loaderData }: Route.ComponentProps) { return <h1>Hello, {loaderData.planet}!</h1>; }
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-spa/react-router.config.ts
playground/framework-spa/react-router.config.ts
import type { Config } from "@react-router/dev/config"; export default { ssr: false, } satisfies Config;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-spa/vite.config.ts
playground/framework-spa/vite.config.ts
import { reactRouter } from "@react-router/dev/vite"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [reactRouter(), tsconfigPaths()], });
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-spa/app/routes.ts
playground/framework-spa/app/routes.ts
import { type RouteConfig, index } from "@react-router/dev/routes"; export default [index("routes/_index.tsx")] satisfies RouteConfig;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-spa/app/root.tsx
playground/framework-spa/app/root.tsx
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router"; export function Layout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <Met...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-spa/app/routes/_index.tsx
playground/framework-spa/app/routes/_index.tsx
import type { MetaFunction } from "react-router"; export const meta: MetaFunction = () => { return [ { title: "New React Router App" }, { name: "description", content: "Welcome to React Router!" }, ]; }; export default function Index() { return ( <div style={{ fontFamily: "system-ui, sans-serif", li...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-7-beta/react-router.config.ts
playground/framework-vite-7-beta/react-router.config.ts
import type { Config } from "@react-router/dev/config"; export default { future: { unstable_subResourceIntegrity: true, unstable_optimizeDeps: true, v8_viteEnvironmentApi: true, }, } satisfies Config;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-7-beta/vite.config.ts
playground/framework-vite-7-beta/vite.config.ts
import { reactRouter } from "@react-router/dev/vite"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ // @ts-expect-error `dev` depends on Vite 6, Plugin type is mismatched. plugins: [reactRouter(), tsconfigPaths()], });
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-7-beta/app/routes.ts
playground/framework-vite-7-beta/app/routes.ts
import { type RouteConfig, index, route } from "@react-router/dev/routes"; export default [ index("routes/_index.tsx"), route("products/:id", "routes/product.tsx"), ] satisfies RouteConfig;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-7-beta/app/root.tsx
playground/framework-vite-7-beta/app/root.tsx
import { Link, Links, Meta, Outlet, Scripts, ScrollRestoration, } from "react-router"; export function Layout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-7-beta/app/routes/product.tsx
playground/framework-vite-7-beta/app/routes/product.tsx
import type { Route } from "./+types/product"; export function loader({ params }: Route.LoaderArgs) { return { name: `Super cool product #${params.id}` }; } export default function Component({ loaderData }: Route.ComponentProps) { return <h1>{loaderData.name}</h1>; }
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-7-beta/app/routes/_index.tsx
playground/framework-vite-7-beta/app/routes/_index.tsx
import type { Route } from "./+types/_index"; export function loader({ params }: Route.LoaderArgs) { return { planet: "world", date: new Date(), fn: () => 1 }; } export default function Index({ loaderData }: Route.ComponentProps) { return <h1>Hello, {loaderData.planet}!</h1>; }
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-5/react-router.config.ts
playground/framework-vite-5/react-router.config.ts
import type { Config } from "@react-router/dev/config"; export default {} satisfies Config;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-5/vite.config.ts
playground/framework-vite-5/vite.config.ts
import { reactRouter } from "@react-router/dev/vite"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [ // @ts-expect-error `dev` depends on Vite 6, Plugin type is mismatched. reactRouter(), tsconfigPaths(), ], });
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-5/app/routes.ts
playground/framework-vite-5/app/routes.ts
import { type RouteConfig, index, route } from "@react-router/dev/routes"; export default [ index("routes/_index.tsx"), route("products/:id", "routes/product.tsx"), ] satisfies RouteConfig;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-5/app/root.tsx
playground/framework-vite-5/app/root.tsx
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router"; export function Layout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <Met...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-5/app/routes/product.tsx
playground/framework-vite-5/app/routes/product.tsx
import type { Route } from "./+types/product"; export function loader({ params }: Route.LoaderArgs) { return { name: `Super cool product #${params.id}` }; } export default function Component({ loaderData }: Route.ComponentProps) { return <h1>{loaderData.name}</h1>; }
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-vite-5/app/routes/_index.tsx
playground/framework-vite-5/app/routes/_index.tsx
import type { Route } from "./+types/_index"; export function loader({ params }: Route.LoaderArgs) { return { planet: "world", date: new Date(), fn: () => 1 }; } export default function Index({ loaderData }: Route.ComponentProps) { return <h1>Hello, {loaderData.planet}!</h1>; }
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/split-route-modules/react-router.config.ts
playground/split-route-modules/react-router.config.ts
import { Config } from "@react-router/dev/config"; export default { future: { v8_splitRouteModules: true, }, } satisfies Config;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/split-route-modules/vite.config.ts
playground/split-route-modules/vite.config.ts
import { reactRouter } from "@react-router/dev/vite"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [reactRouter(), tsconfigPaths()], });
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/split-route-modules/app/routes.ts
playground/split-route-modules/app/routes.ts
import { type RouteConfig, index, route } from "@react-router/dev/routes"; export default [ index("routes/_index.tsx"), route("splittable", "routes/splittable.tsx"), route("unsplittable", "routes/unsplittable.tsx"), route("semi-splittable", "routes/semi-splittable.tsx"), ] satisfies RouteConfig;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/split-route-modules/app/root.tsx
playground/split-route-modules/app/root.tsx
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router"; export function Layout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <Met...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/split-route-modules/app/routes/splittable.tsx
playground/split-route-modules/app/routes/splittable.tsx
import type { Route } from "./+types/splittable"; import { Form } from "react-router"; export const clientLoader = async () => { return "Hello from splittable client loader"; }; export const clientAction = async () => { return "Hello from splittable client action"; }; export function HydrateFallback() { return...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/split-route-modules/app/routes/unsplittable.tsx
playground/split-route-modules/app/routes/unsplittable.tsx
import type { Route } from "./+types/unsplittable"; import { Form } from "react-router"; // Dummy variable to prevent route exports from being split let shared: null = null; export const clientLoader = async () => { return shared ?? "Hello from unsplittable client loader"; }; export const clientAction = async () =...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/split-route-modules/app/routes/_index.tsx
playground/split-route-modules/app/routes/_index.tsx
import { Link, type MetaFunction } from "react-router"; export const meta: MetaFunction = () => { return [ { title: "New React Router App" }, { name: "description", content: "Welcome to React Router!" }, ]; }; export default function Index() { return ( <div style={{ fontFamily: "system-ui, sans-seri...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/split-route-modules/app/routes/semi-splittable.tsx
playground/split-route-modules/app/routes/semi-splittable.tsx
import type { Route } from "./+types/semi-splittable"; import { Form } from "react-router"; // Dummy variable to prevent route exports from being split let shared: null = null; export const clientLoader = async () => { return shared ?? "Hello from unsplittable client loader"; }; export const clientAction = async (...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/vite-plugin-cloudflare/react-router.config.ts
playground/vite-plugin-cloudflare/react-router.config.ts
import type { Config } from "@react-router/dev/config"; export default { future: { v8_viteEnvironmentApi: true, }, } satisfies Config;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/vite-plugin-cloudflare/vite.config.ts
playground/vite-plugin-cloudflare/vite.config.ts
import { reactRouter } from "@react-router/dev/vite"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; import { cloudflare } from "@cloudflare/vite-plugin"; export default defineConfig({ plugins: [ cloudflare({ viteEnvironment: { name: "ssr" } }), reactRouter(), tscon...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/vite-plugin-cloudflare/workers/app.ts
playground/vite-plugin-cloudflare/workers/app.ts
import { createRequestHandler } from "react-router"; declare global { interface CloudflareEnvironment extends Env {} } declare module "react-router" { export interface AppLoadContext { cloudflare: { env: CloudflareEnvironment; ctx: ExecutionContext; }; } } const requestHandler = createReque...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/vite-plugin-cloudflare/app/routes.ts
playground/vite-plugin-cloudflare/app/routes.ts
import { type RouteConfig } from "@react-router/dev/routes"; import { flatRoutes } from "@react-router/fs-routes"; export default flatRoutes() satisfies RouteConfig;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/vite-plugin-cloudflare/app/root.tsx
playground/vite-plugin-cloudflare/app/root.tsx
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router"; export default function App() { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <Meta /> <Links /> </head> ...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/vite-plugin-cloudflare/app/entry.server.tsx
playground/vite-plugin-cloudflare/app/entry.server.tsx
import type { AppLoadContext, EntryContext } from "react-router"; import { ServerRouter } from "react-router"; import { isbot } from "isbot"; import { renderToReadableStream } from "react-dom/server"; export default async function handleRequest( request: Request, responseStatusCode: number, responseHeaders: Head...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/vite-plugin-cloudflare/app/routes/_index.tsx
playground/vite-plugin-cloudflare/app/routes/_index.tsx
import type { MetaFunction } from "react-router"; import type { Route } from "./+types/_index" export const meta: MetaFunction = () => { return [ { title: "New React Router App" }, { name: "description", content: "Welcome to React Router!" }, ]; }; export async function loader({ context }: Route.LoaderArg...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-express/react-router.config.ts
playground/framework-express/react-router.config.ts
import type { Config } from "@react-router/dev/config"; export default {} satisfies Config;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-express/vite.config.ts
playground/framework-express/vite.config.ts
import { reactRouter } from "@react-router/dev/vite"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [reactRouter(), tsconfigPaths()], });
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-express/app/routes.ts
playground/framework-express/app/routes.ts
import { type RouteConfig, index } from "@react-router/dev/routes"; export default [index("routes/_index.tsx")] satisfies RouteConfig;
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-express/app/root.tsx
playground/framework-express/app/root.tsx
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router"; export function Layout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <Met...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
remix-run/react-router
https://github.com/remix-run/react-router/blob/aaa150616e619efc8d26c092e8625962c2fb4246/playground/framework-express/app/routes/_index.tsx
playground/framework-express/app/routes/_index.tsx
import type { MetaFunction } from "react-router"; export const meta: MetaFunction = () => { return [ { title: "New React Router App" }, { name: "description", content: "Welcome to React Router!" }, ]; }; export default function Index() { return ( <div style={{ fontFamily: "system-ui, sans-serif", li...
typescript
MIT
aaa150616e619efc8d26c092e8625962c2fb4246
2026-01-04T15:29:26.871957Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/vitest.config.ts
vitest.config.ts
import { configDefaults, defineConfig } from 'vitest/config' import { entries } from './scripts/aliases.js' export default defineConfig({ define: { __DEV__: true, __TEST__: true, __VERSION__: '"test"', __BROWSER__: false, __GLOBAL__: false, __ESM_BUNDLER__: true, __ESM_BROWSER__: false, ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/scripts/setup-vitest.ts
scripts/setup-vitest.ts
import type { MockInstance } from 'vitest' declare module 'vitest' { interface Assertion<T = any> extends CustomMatchers<T> {} interface AsymmetricMatchersContaining extends CustomMatchers {} } interface CustomMatchers<R = unknown> { toHaveBeenWarned(): R toHaveBeenWarnedLast(): R toHaveBeenWarnedTimes(n: n...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/global.d.ts
packages-private/global.d.ts
/// <reference types="vite/client" /> // Global compile-time constants declare var __COMMIT__: string declare module 'file-saver' { export function saveAs(blob: any, name: any): void }
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/template-explorer/src/options.ts
packages-private/template-explorer/src/options.ts
import { createApp, h, reactive, ref } from 'vue' import type { CompilerOptions } from '@vue/compiler-dom' import { BindingTypes } from '@vue/compiler-core' export const ssrMode = ref(false) export const defaultOptions: CompilerOptions = { mode: 'module', filename: 'Foo.vue', prefixIdentifiers: false, hoistSt...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/template-explorer/src/index.ts
packages-private/template-explorer/src/index.ts
import type * as m from 'monaco-editor' import { type CompilerError, type CompilerOptions, compile, } from '@vue/compiler-dom' import { compile as ssrCompile } from '@vue/compiler-ssr' import { compilerOptions, defaultOptions, initOptions, ssrMode, } from './options' import { toRaw, watchEffect } from '@v...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/template-explorer/src/theme.ts
packages-private/template-explorer/src/theme.ts
export default { base: 'vs-dark' as const, inherit: true, rules: [ { foreground: 'de935f', token: 'number', }, { foreground: '969896', token: 'comment', }, { foreground: 'ced1cf', token: 'keyword.operator.class', }, { foreground: 'ced1cf', ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/h.test-d.ts
packages-private/dts-test/h.test-d.ts
import { type Component, type DefineComponent, Fragment, type FunctionalComponent, Suspense, Teleport, type VNode, defineComponent, h, ref, resolveComponent, } from 'vue' import { describe, expectAssignable, expectType } from './utils' describe('h inference w/ element', () => { // key h('div'...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/functionalComponent.test-d.tsx
packages-private/dts-test/functionalComponent.test-d.tsx
import { type Component, type FunctionalComponent, Text, type VNode, h, } from 'vue' import { expectType } from './utils' // simple function signature const Foo = (props: { foo: number }) => h(Text, null, props.foo) // TSX expectType<JSX.Element>(<Foo foo={1} />) expectType<JSX.Element>(<Foo foo={1} key="1"...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/watch.test-d.ts
packages-private/dts-test/watch.test-d.ts
import { type ComputedRef, type MaybeRef, type Ref, computed, defineComponent, defineModel, reactive, ref, shallowRef, watch, } from 'vue' import { expectType } from './utils' const source = ref('foo') const source2 = computed(() => source.value) const source3 = () => 1 type Bar = Ref<string> | Co...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/appDirective.test-d.ts
packages-private/dts-test/appDirective.test-d.ts
import { createApp } from 'vue' import { expectType } from './utils' const app = createApp({}) app.directive<HTMLElement, string, 'prevent' | 'stop', 'arg1' | 'arg2'>( 'custom', { mounted(el, binding) { expectType<HTMLElement>(el) expectType<string>(binding.value) expectType<{ prevent?: bool...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/component.test-d.ts
packages-private/dts-test/component.test-d.ts
import { type Component, type ComponentPublicInstance, type EmitsOptions, type FunctionalComponent, type PropType, type Ref, type SetupContext, type ShallowUnwrapRef, defineComponent, ref, toRefs, } from 'vue' import { type IsAny, describe, expectAssignable, expectType } from './utils' declare fu...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/tsx.test-d.tsx
packages-private/dts-test/tsx.test-d.tsx
// TSX w/ defineComponent is tested in defineComponent.test-d.tsx import { Fragment, KeepAlive, Suspense, Teleport, type VNode } from 'vue' import { expectType } from './utils' expectType<VNode>(<div />) expectType<JSX.Element>(<div />) expectType<JSX.Element>(<div id="foo" />) expectType<JSX.Element>(<div>hello</div>...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/componentInstance.test-d.tsx
packages-private/dts-test/componentInstance.test-d.tsx
import { type ComponentInstance, type ComponentPublicInstance, type FunctionalComponent, defineComponent, ref, } from 'vue' import { describe, expectType } from './utils' describe('defineComponent', () => { const CompSetup = defineComponent({ props: { test: String, }, setup() { retu...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/utils.d.ts
packages-private/dts-test/utils.d.ts
// This directory contains a number of d.ts assertions // use \@ts-expect-error where errors are expected. // register global JSX import 'vue/jsx' export function describe(_name: string, _fn: () => void): void export function test(_name: string, _fn: () => any): void export function expectType<T>(value: T): void exp...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/ref.test-d.ts
packages-private/dts-test/ref.test-d.ts
import { type ComputedRef, type MaybeRef, type MaybeRefOrGetter, type Ref, type ShallowRef, type TemplateRef, type ToRefs, type WritableComputedRef, computed, isRef, proxyRefs, reactive, readonly, ref, shallowReactive, shallowRef, toRef, toRefs, toValue, unref, useTemplateRef, ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/reactivity.test-d.ts
packages-private/dts-test/reactivity.test-d.ts
import { type Ref, markRaw, reactive, readonly, ref, shallowReadonly, } from 'vue' import { describe, expectType } from './utils' describe('should support DeepReadonly', () => { const r = readonly({ obj: { k: 'v' } }) // @ts-expect-error r.obj = {} // @ts-expect-error r.obj.k = 'x' }) // #4180 d...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/defineCustomElement.test-d.ts
packages-private/dts-test/defineCustomElement.test-d.ts
import { type VueElementConstructor, defineComponent, defineCustomElement, } from 'vue' import { describe, expectType, test } from './utils' describe('inject', () => { // with object inject defineCustomElement({ props: { a: String, }, inject: { foo: 'foo', bar: 'bar', }, ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/extractProps.test-d.ts
packages-private/dts-test/extractProps.test-d.ts
import type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue' import { type Prettify, expectType } from './utils' const propsOptions = { foo: { default: 1, }, bar: { type: String, required: true, }, baz: Boolean, qux: Array, } as const // internal facing props declare const props: Pretti...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/compiler.test-d.ts
packages-private/dts-test/compiler.test-d.ts
import { Comment, Fragment, Static, Suspense, Teleport, Text, type VNode, createBlock, defineComponent, } from 'vue' import { expectType } from './utils' expectType<VNode>(createBlock(Teleport)) expectType<VNode>(createBlock(Text)) expectType<VNode>(createBlock(Static)) expectType<VNode>(createBlock(...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/componentTypeExtensions.test-d.tsx
packages-private/dts-test/componentTypeExtensions.test-d.tsx
import { type DefineComponent, type Directive, defineComponent } from 'vue' import { expectType } from './utils' declare module 'vue' { interface ComponentCustomOptions { test?(n: number): void } interface GlobalDirectives { test: Directive } interface GlobalComponents { RouterView: DefineCompo...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/inject.test-d.ts
packages-private/dts-test/inject.test-d.ts
import { type InjectionKey, type Ref, createApp, defineComponent, inject, provide, ref, } from 'vue' import { expectType } from './utils' // non-symbol keys provide('foo', 123) provide(123, 123) const key: InjectionKey<number> = Symbol() provide(key, 1) // @ts-expect-error provide(key, 'foo') // @ts-ex...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/defineComponent.test-d.tsx
packages-private/dts-test/defineComponent.test-d.tsx
import { type Component, type ComponentOptions, type ComponentPublicInstance, type PropType, type SetupContext, type Slots, type SlotsType, type VNode, createApp, defineComponent, h, reactive, ref, withKeys, withModifiers, } from 'vue' import { type IsAny, type IsUnion, describe, expectTyp...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
true
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/appUse.test-d.ts
packages-private/dts-test/appUse.test-d.ts
import { type App, type Plugin, createApp, defineComponent } from 'vue' const app = createApp({}) // Plugin without types accept anything const PluginWithoutType: Plugin = { install(app: App) {}, } app.use(PluginWithoutType) app.use(PluginWithoutType, 2) app.use(PluginWithoutType, { anything: 'goes' }, true) type...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/built.test-d.ts
packages-private/dts-test/built.test-d.ts
import { CustomPropsNotErased } from 'dts-built-test/src/index' import { describe, expectType } from './utils' declare module 'vue' { interface ComponentCustomProps { custom?: number } } // #8376 - custom props should not be erased describe('Custom Props not erased', () => { expectType<number | undefined>(n...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/scheduler.test-d.ts
packages-private/dts-test/scheduler.test-d.ts
import { nextTick } from 'vue' import { describe, expectType } from './utils' describe('nextTick', async () => { expectType<Promise<void>>(nextTick()) expectType<Promise<string>>(nextTick(() => 'foo')) expectType<Promise<string>>(nextTick(() => Promise.resolve('foo'))) expectType<Promise<string>>( nextTick...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/directives.test-d.ts
packages-private/dts-test/directives.test-d.ts
import { type Directive, type ObjectDirective, vModelText } from 'vue' import { describe, expectType } from './utils' type ExtractBinding<T> = T extends ( el: any, binding: infer B, vnode: any, prev: any, ) => any ? B : never declare function testDirective< Value, Modifiers extends string = string, ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-test/setupHelpers.test-d.ts
packages-private/dts-test/setupHelpers.test-d.ts
import { type Ref, type Slots, type VNode, defineComponent, defineEmits, defineModel, defineOptions, defineProps, defineSlots, toRefs, useAttrs, useModel, useSlots, withDefaults, } from 'vue' import { describe, expectType } from './utils' describe('defineProps w/ type declaration', () => { ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/sfc-playground/vite.config.ts
packages-private/sfc-playground/vite.config.ts
import fs from 'node:fs' import path from 'node:path' import { type Plugin, defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { spawnSync } from 'node:child_process' const commit = spawnSync('git', ['rev-parse', '--short=7', 'HEAD']) .stdout.toString() .trim() export default defineConfig({ ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/sfc-playground/src/vue-dev-proxy.ts
packages-private/sfc-playground/src/vue-dev-proxy.ts
// serve vue to the iframe sandbox during dev. export * from 'vue'
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/sfc-playground/src/vue-server-renderer-dev-proxy.ts
packages-private/sfc-playground/src/vue-server-renderer-dev-proxy.ts
// serve vue/server-renderer to the iframe sandbox during dev. export * from 'vue/server-renderer'
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/sfc-playground/src/vue-dev-proxy-prod.ts
packages-private/sfc-playground/src/vue-dev-proxy-prod.ts
// serve vue to the iframe sandbox during dev. export * from 'vue/dist/vue.runtime.esm-browser.prod.js'
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/sfc-playground/src/main.ts
packages-private/sfc-playground/src/main.ts
import { createApp } from 'vue' import App from './App.vue' // @ts-expect-error Custom window property window.VUE_DEVTOOLS_CONFIG = { defaultSelectedAppId: 'repl', } createApp(App).mount('#app')
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/sfc-playground/src/download/download.ts
packages-private/sfc-playground/src/download/download.ts
import { saveAs } from 'file-saver' import index from './template/index.html?raw' import main from './template/main.js?raw' import pkg from './template/package.json?raw' import config from './template/vite.config.js?raw' import readme from './template/README.md?raw' import type { ReplStore } from '@vue/repl' export a...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/dts-built-test/src/index.ts
packages-private/dts-built-test/src/index.ts
import { defineComponent } from 'vue' const _CustomPropsNotErased = defineComponent({ props: {}, setup() {}, }) // #8376 export const CustomPropsNotErased = _CustomPropsNotErased as typeof _CustomPropsNotErased & { foo: string }
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/vite-debug/main.ts
packages-private/vite-debug/main.ts
import { createApp } from 'vue' import App from './App.vue' const app = createApp(App) app.mount('#app')
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages-private/vite-debug/vite.config.ts
packages-private/vite-debug/vite.config.ts
import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' export default defineConfig({ plugins: [vue()], })
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/global.d.ts
packages/global.d.ts
// Global compile-time constants declare var __DEV__: boolean declare var __TEST__: boolean declare var __BROWSER__: boolean declare var __GLOBAL__: boolean declare var __ESM_BUNDLER__: boolean declare var __ESM_BROWSER__: boolean declare var __CJS__: boolean declare var __SSR__: boolean declare var __VERSION__: string...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/componentProps.ts
packages/runtime-core/src/componentProps.ts
import { TriggerOpTypes, shallowReactive, shallowReadonly, toRaw, trigger, } from '@vue/reactivity' import { EMPTY_ARR, EMPTY_OBJ, type IfAny, PatchFlags, camelize, capitalize, extend, hasOwn, hyphenate, isArray, isFunction, isObject, isOn, isReservedProp, isString, makeMap, ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/apiCreateApp.ts
packages/runtime-core/src/apiCreateApp.ts
import { type Component, type ComponentInternalInstance, type ConcreteComponent, type Data, getComponentPublicInstance, validateComponentName, } from './component' import type { ComponentOptions, MergedComponentOptions, RuntimeCompilerOptions, } from './componentOptions' import type { ComponentCusto...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/directives.ts
packages/runtime-core/src/directives.ts
/** Runtime helper for applying directives to a vnode. Example usage: const comp = resolveComponent('comp') const foo = resolveDirective('foo') const bar = resolveDirective('bar') return withDirectives(h(comp), [ [foo, this.x], [bar, this.y] ]) */ import type { VNode } from './vnode' import { EMPTY_OBJ, isBuiltI...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/vnode.ts
packages/runtime-core/src/vnode.ts
import { EMPTY_ARR, PatchFlags, ShapeFlags, SlotFlags, extend, isArray, isFunction, isObject, isOn, isString, normalizeClass, normalizeStyle, } from '@vue/shared' import { type ClassComponent, type Component, type ComponentInternalInstance, type ConcreteComponent, type Data, isClassC...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/apiSetupHelpers.ts
packages/runtime-core/src/apiSetupHelpers.ts
import { type IfAny, type LooseRequired, type Prettify, type UnionToIntersection, extend, isArray, isFunction, isPromise, } from '@vue/shared' import { type SetupContext, createSetupContext, getCurrentInstance, setCurrentInstance, unsetCurrentInstance, } from './component' import type { EmitFn...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/hydrationStrategies.ts
packages/runtime-core/src/hydrationStrategies.ts
import { getGlobalThis, isString } from '@vue/shared' import { DOMNodeTypes, isComment } from './hydration' // Polyfills for Safari support // see https://caniuse.com/requestidlecallback const requestIdleCallback: Window['requestIdleCallback'] = getGlobalThis().requestIdleCallback || (cb => setTimeout(cb, 1)) const ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/componentOptions.ts
packages/runtime-core/src/componentOptions.ts
import { type Component, type ComponentInternalInstance, type ComponentInternalOptions, type ConcreteComponent, type Data, type InternalRenderFunction, type SetupContext, currentInstance, } from './component' import { type LooseRequired, NOOP, type Prettify, extend, isArray, isFunction, is...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
true
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/componentSlots.ts
packages/runtime-core/src/componentSlots.ts
import { type ComponentInternalInstance, currentInstance } from './component' import { type VNode, type VNodeChild, type VNodeNormalizedChildren, normalizeVNode, } from './vnode' import { EMPTY_OBJ, type IfAny, type Prettify, ShapeFlags, SlotFlags, def, isArray, isFunction, } from '@vue/shared' ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/componentRenderContext.ts
packages/runtime-core/src/componentRenderContext.ts
import type { ComponentInternalInstance } from './component' import { devtoolsComponentUpdated } from './devtools' import { setBlockTracking } from './vnode' /** * mark the current rendering instance for asset resolution (e.g. * resolveComponent, resolveDirective) during render */ export let currentRenderingInstanc...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/profiling.ts
packages/runtime-core/src/profiling.ts
/* eslint-disable no-restricted-globals */ import { type ComponentInternalInstance, formatComponentName, } from './component' import { devtoolsPerfEnd, devtoolsPerfStart } from './devtools' let supported: boolean let perf: Performance export function startMeasure( instance: ComponentInternalInstance, type: st...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/internalObject.ts
packages/runtime-core/src/internalObject.ts
/** * Used during vnode props/slots normalization to check if the vnode props/slots * are the internal attrs / slots object of a component via * `Object.getPrototypeOf`. This is more performant than defining a * non-enumerable property. (one of the optimizations done for ssr-benchmark) */ const internalObjectProto...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/componentEmits.ts
packages/runtime-core/src/componentEmits.ts
import { EMPTY_OBJ, type OverloadParameters, type UnionToIntersection, camelize, extend, hasOwn, hyphenate, isArray, isFunction, isObject, isOn, isString, looseToNumber, toHandlerKey, } from '@vue/shared' import { type ComponentInternalInstance, type ComponentOptions, type ConcreteComp...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/renderer.ts
packages/runtime-core/src/renderer.ts
import { Comment, Fragment, Static, Text, type VNode, type VNodeArrayChildren, type VNodeHook, type VNodeProps, cloneIfMounted, createVNode, invokeVNodeHook, isSameVNodeType, normalizeVNode, } from './vnode' import { type ComponentInternalInstance, type ComponentOptions, type Data, typ...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
true
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/rendererTemplateRef.ts
packages/runtime-core/src/rendererTemplateRef.ts
import type { SuspenseBoundary } from './components/Suspense' import type { VNode, VNodeNormalizedRef, VNodeNormalizedRefAtom, VNodeRef, } from './vnode' import { EMPTY_OBJ, NO, ShapeFlags, hasOwn, isArray, isFunction, isString, remove, } from '@vue/shared' import { isAsyncWrapper } from './apiA...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/hmr.ts
packages/runtime-core/src/hmr.ts
/* eslint-disable no-restricted-globals */ import { type ClassComponent, type ComponentInternalInstance, type ComponentOptions, type ConcreteComponent, type InternalRenderFunction, isClassComponent, } from './component' import { SchedulerJobFlags, queueJob, queuePostFlushCb } from './scheduler' import { ext...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false
vuejs/core
https://github.com/vuejs/core/blob/aac7e1898907445c8f89b22047a9bfcf0a6e91b8/packages/runtime-core/src/apiAsyncComponent.ts
packages/runtime-core/src/apiAsyncComponent.ts
import { type Component, type ComponentInternalInstance, type ComponentOptions, type ConcreteComponent, currentInstance, getComponentName, isInSSRComponentSetup, } from './component' import { isFunction, isObject } from '@vue/shared' import type { ComponentPublicInstance } from './componentPublicInstance'...
typescript
MIT
aac7e1898907445c8f89b22047a9bfcf0a6e91b8
2026-01-04T15:31:41.625443Z
false