跳转到内容

ThrottleBehaviorOptions

当你需要复用类型结构时使用此类型别名。

ThrottleBehaviorOptions
NameType
leadingboolean
trailingboolean
import type { ThrottleBehaviorOptions } from '@iostore/store/behavior';
let value!: ThrottleBehaviorOptions;
console.log(value);
  • 避免在用户文档中展开过于复杂的类型细节。
  • 调整类型别名时注意下游兼容性。
  • packages/io/src/lib/extensions/behaviors/throttle.ts