blockly > 변수 > nameUsedWithAnyType

Variables.nameUsedWithAnyType() 함수

모든 유형의 이름을 가진 변수가 있는지 확인합니다.

Signature:

export declare function nameUsedWithAnyType(name: string, workspace: Workspace): VariableModel | null;

매개변수

매개변수 유형 설명
이름 string 검색할 이름입니다.
작업공간 Workspace 변수를 검색할 작업공간입니다.

반환:

VariableModel | null

지정된 이름의 변수 또는 찾을 수 없는 경우 null입니다.