mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🚧 Temporarily add ts-ignore statements
This shall be reverted once the new API types are published
This commit is contained in:
parent
56e369a1c0
commit
bb4d0322d8
@ -431,6 +431,7 @@ export class PenpotUtils {
|
|||||||
*/
|
*/
|
||||||
public static findTokensByName(name: string): any[] {
|
public static findTokensByName(name: string): any[] {
|
||||||
const tokens: any[] = [];
|
const tokens: any[] = [];
|
||||||
|
// @ts-ignore
|
||||||
const tokenCatalog = penpot.library.local.tokens;
|
const tokenCatalog = penpot.library.local.tokens;
|
||||||
|
|
||||||
for (const set of tokenCatalog.sets) {
|
for (const set of tokenCatalog.sets) {
|
||||||
@ -451,6 +452,7 @@ export class PenpotUtils {
|
|||||||
* @returns The first matching token, or null if not found
|
* @returns The first matching token, or null if not found
|
||||||
*/
|
*/
|
||||||
public static findTokenByName(name: string): any | null {
|
public static findTokenByName(name: string): any | null {
|
||||||
|
// @ts-ignore
|
||||||
const tokenCatalog = penpot.library.local.tokens;
|
const tokenCatalog = penpot.library.local.tokens;
|
||||||
|
|
||||||
for (const set of tokenCatalog.sets) {
|
for (const set of tokenCatalog.sets) {
|
||||||
@ -471,6 +473,7 @@ export class PenpotUtils {
|
|||||||
* @returns The TokenSet containing this token, or null if not found
|
* @returns The TokenSet containing this token, or null if not found
|
||||||
*/
|
*/
|
||||||
public static getTokenSet(token: any): any | null {
|
public static getTokenSet(token: any): any | null {
|
||||||
|
// @ts-ignore
|
||||||
const tokenCatalog = penpot.library.local.tokens;
|
const tokenCatalog = penpot.library.local.tokens;
|
||||||
|
|
||||||
for (const set of tokenCatalog.sets) {
|
for (const set of tokenCatalog.sets) {
|
||||||
@ -490,6 +493,7 @@ export class PenpotUtils {
|
|||||||
*/
|
*/
|
||||||
public static tokenOverview(): Record<string, Record<string, string[]>> {
|
public static tokenOverview(): Record<string, Record<string, string[]>> {
|
||||||
const overview: Record<string, Record<string, string[]>> = {};
|
const overview: Record<string, Record<string, string[]>> = {};
|
||||||
|
// @ts-ignore
|
||||||
const tokenCatalog = penpot.library.local.tokens;
|
const tokenCatalog = penpot.library.local.tokens;
|
||||||
|
|
||||||
for (const set of tokenCatalog.sets) {
|
for (const set of tokenCatalog.sets) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user