Skip to content

Commit

Permalink
Merge pull request #63 from Lakitna/type-fix-for-attribute
Browse files Browse the repository at this point in the history
Type fix for attribute
  • Loading branch information
Lakitna authored Oct 8, 2021
2 parents 026fce9 + dd904e8 commit e35d4f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## 2.0.1 - 2021-10-08

### Fixes

- Type definition for `.attribute()` no longer requires you to pass an `options` object.

## 2.0.0 - 2021-09-13

### Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-commands",
"version": "2.0.0",
"version": "2.0.1",
"description": "A collection of Cypress commands to extend and complement the default commands",
"license": "MIT",
"main": "dist/cypress-commands.js",
Expand Down
2 changes: 1 addition & 1 deletion types/attribute.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare namespace Cypress {
*/
attribute(
attribute: string,
options: Partial<AttributeOptions>
options?: Partial<AttributeOptions>
): Chainable<string | string[]>;

/**
Expand Down

0 comments on commit e35d4f7

Please sign in to comment.