Skip to content

AddSheet helpers have different sytnax #28

Closed

Description

@wojciechczerniak

Description

The syntax for addSheet and removeSheet and their helpers isn't consistent. addSheet and isItPossibleToAddSheet has name as an argument, where the removeSheet and isItPossibleToRemoveSheet take sheet id as a number.

Should we keep it like that?

From API

addSheet(name?: undefined | string): void
removeSheet(sheet: number): CellValueChange[]
isItPossibleToAddSheet(name: string): boolean
isItPossibleToRemoveSheet(sheet: number): boolean

Activity

  1. voodoo11 commented on Nov 22, 2019

    @voodoo11
    Contributor

    Adjusted API:

    public isItPossibleToAddSheet(name: string): boolean
    public addSheet(name?: string): string
    public isItPossibleToRemoveSheet(name: string): boolean
    public removeSheet(name: string): CellValueChange[]
  2. added a commit that references this issue on Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions