Skip to content

Commit

Permalink
Merge remote-tracking branch 'chipper-history-copy/main' into develop…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
samreid committed Oct 22, 2024
2 parents 93ac5ff + 00b448e commit 2f8b3c3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions phet-types-module.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2023, University of Colorado Boulder

/**
* Ambient type declarations for PhET code that requires import statements. Please note this type declaration file is in
* module model, unlike phet-types.d.ts which is in globals mode. We cannot use globals mode here because we must import
* lodash.
*
* @author Sam Reid (PhET Interactive Simulations)
*/

import * as lodash from 'lodash';

declare global {

// Specify the correct type for lodash as a global object to work around the TS2686 warning in WebStorm/IntelliJ
// See https://github.com/phetsims/chipper/issues/1402
const _: typeof lodash;
}

0 comments on commit 2f8b3c3

Please sign in to comment.