Skip to content

Commit

Permalink
feat: add typescript template
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis committed Feb 13, 2024
1 parent f7e53c3 commit 7097ff5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js → src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as itowns from 'itowns';

// Get our `<div id="viewerId">` element. When creating a `View`, a canvas will
// be appended to this element.
const viewerDiv = document.getElementById('viewerDiv');
const viewerDiv = document.getElementById('viewerDiv') as HTMLDivElement;

// Define an initial camera position
const placement = {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config = (env) => {
return {
mode: env.production ? 'production' : 'development',
entry: {
main: './src/index.js',
main: './src/index.ts',
},
module: {
rules: [
Expand Down

0 comments on commit 7097ff5

Please sign in to comment.