Skip to content

Commit

Permalink
Update src/attributes.ts attributes is ContextAttributes
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksii Shmalko <[email protected]>
  • Loading branch information
sameerank and rasendubi authored Jan 8, 2025
1 parent bb03341 commit ad86727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attributes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Attributes, BanditActions, BanditSubjectAttributes, ContextAttributes } from './types';

export function isInstanceOfContextualAttributes(attributes: unknown): boolean {
export function isInstanceOfContextualAttributes(attributes: unknown): attributes is ContextAttributes {

Check warning on line 3 in src/attributes.ts

View workflow job for this annotation

GitHub Actions / lint-test-sdk (18)

Replace `attributes:·unknown` with `⏎··attributes:·unknown,⏎`

Check warning on line 3 in src/attributes.ts

View workflow job for this annotation

GitHub Actions / lint-test-sdk (20)

Replace `attributes:·unknown` with `⏎··attributes:·unknown,⏎`

Check warning on line 3 in src/attributes.ts

View workflow job for this annotation

GitHub Actions / lint-test-sdk (22)

Replace `attributes:·unknown` with `⏎··attributes:·unknown,⏎`

Check warning on line 3 in src/attributes.ts

View workflow job for this annotation

GitHub Actions / lint-test-sdk (23)

Replace `attributes:·unknown` with `⏎··attributes:·unknown,⏎`
return Boolean(
typeof attributes === 'object' &&
attributes && // exclude null
Expand Down

0 comments on commit ad86727

Please sign in to comment.