A counter released over three major versions, to show how the directory lists and compares a package's versions.
A synthetic package: it isn't published to any registry.
Interfaces
counter— A counter, counting up from zero, or back to it.
WIT
/// A counter released over three major versions, to show how the directory lists and
/// compares a package's versions.
///
/// A synthetic package: it isn't published to any registry.
package kitchen-sink:releases@1.2.0;
/// A counter, counting up from zero, or back to it.
interface counter {
/// The current count, now wide enough to never wrap.
get: func() -> u64;
/// Adds one to the count.
increment: func();
/// Sets the count back to zero.
reset: func();
/// Adds to the count.
add: func(n: u64);
}