Skip to content

Commit

Permalink
Add Arry type including last
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Sep 26, 2024
1 parent 164e5b2 commit 119ea50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/scripts/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ import { getAppURL } from '$utils/history';
import LayoutRoot from '$components/common/layout-root';
import { LayoutRootContextProvider } from '$components/common/layout-root/context';
import { useScrollbarWidthAsCssVar } from '$utils/use-scrollbar-width-css';

// Page loading
import { PageLoading } from '$components/common/loading-skeleton';
// Views
import UhOh from '$components/uhoh';
import ErrorBoundary from '$components/uhoh/fatal-error';

import '$types/array';

const Home = lazy(() => import('$components/home'));
const About = lazy(() => import('$components/about'));
const Development = lazy(() => import('$components/development'));
Expand Down
5 changes: 5 additions & 0 deletions app/scripts/types/array.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

// Extend Array interface to include the last property
interface Array<T> {
last: T | undefined;
}

0 comments on commit 119ea50

Please sign in to comment.