目录

Microsoft Power BI visuals TypeUtils

Build npm version npm

TypeUtils is a set of functions and classes in order to extend the basic types for Power BI custom visuals

Usage

Learn how to install and use the TypeUtils in your custom visuals:

Development

Common scripts:

Command Description
npm ci Install pinned dependencies from package-lock.json
npm run build Compile src/ into lib/ with TypeScript declarations and source maps
npm test Run the full Vitest suite once (used by CI)
npm run test:watch Run Vitest in watch mode — re-runs affected tests on file change
npm run test:coverage Run Vitest once and produce a coverage report under coverage/
npm run test:typecheck Type-check the test/ tree with TypeScript using test/tsconfig.json (run on CI)
npm run lint Lint the codebase with ESLint (flat config in eslint.config.mjs)
npm run lint:fix Auto-fix lint issues where possible

TypeScript configs

  • tsconfig.json — production build of src/lib/ only
  • test/tsconfig.json — extends the main config, adds vitest/globals types and includes the test/ tree so the IDE recognizes describe / it / expect in tests

Tests

Tests live under test/ and are executed by Vitest in a Node environment (no browser). The configuration is in vitest.config.mts.

Contributing

License

See the LICENSE file for license rights and limitations (MIT).

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号