Skip to content

Commit

Permalink
fix: update method extension types to match
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed May 31, 2022
1 parent c3ff4d3 commit 6eb686f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/slider/src/Slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import type { NumberField } from '@spectrum-web-components/number-field';
import { HandleController, HandleValueDictionary } from './HandleController.js';
import { SliderHandle } from './SliderHandle.js';
import { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js';
import type { NumberFormatter } from '@internationalized/number';

export const variants = ['filled', 'ramp', 'range', 'tick'];

Expand Down Expand Up @@ -161,7 +162,7 @@ export class Slider extends ObserveSlotText(SliderHandle, '') {
@query('#track')
public track!: HTMLDivElement;

public get numberFormat(): Intl.NumberFormat {
public get numberFormat(): NumberFormatter {
return this.getNumberFormat();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/slider/src/SliderHandle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class SliderHandle extends Focusable {
protected _numberFormatCache:
| { numberFormat: NumberFormatter; language: string }
| undefined;
protected getNumberFormat(): Intl.NumberFormat {
protected getNumberFormat(): NumberFormatter {
/* c8 ignore next */
if (
!this._numberFormatCache ||
Expand Down

0 comments on commit 6eb686f

Please sign in to comment.